joyent-portal/spikes/architecture/react-d3/client/links.js
2017-01-30 17:22:01 +00:00

16 lines
364 B
JavaScript

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