9d3903a1db
This is an initial implement that at the moment constructs the required SVG layout to be used by D3.
11 lines
220 B
JavaScript
11 lines
220 B
JavaScript
const React = require('react');
|
|
|
|
const renderLines = (props) => {
|
|
return () => <line strokeWidth={2}></line>;
|
|
};
|
|
|
|
module.exports = (props) =>
|
|
<g className='links'>
|
|
{ props.data.links.map(renderLines()) }
|
|
</g>;
|