1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 22:20:06 +02:00
copilot/legacy/spikes/architecture/react-d3/client/graph.js
Sérgio Ramos 8295bd6882 chore: initial lerna setup
this shall be a progressive process
2017-05-25 10:56:50 +01:00

27 lines
429 B
JavaScript

const ReactRedux = require('react-redux');
const React = require('react');
const Links = require('./links');
const Nodes = require('./nodes');
const {
connect
} = ReactRedux;
const Component = (props) =>
<svg width='960' height='600'>
<Links {...props}/>
<Nodes {...props}/>
</svg>;
const mapStateToProps = ({
data
}) => {
return {
data
};
};
module.exports = connect(
mapStateToProps
)(Component);