1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-29 06:30:07 +02:00
copilot/spikes/architecture/react-d3/client/links.js

11 lines
220 B
JavaScript
Raw Normal View History

const React = require('react');
const renderLines = (props) => {
return () => <line strokeWidth={2}></line>;
};
module.exports = (props) =>
<g className='links'>
{ props.data.links.map(renderLines()) }
</g>;