1
0
mirror of https://github.com/yldio/copilot.git synced 2024-11-28 22:20:06 +02:00
copilot/spikes/architecture/react-d3/client/root.js
Tom Gallacher 9d3903a1db Implement d3 avg rendering in react
This is an initial implement that at the moment constructs the required
SVG layout to be used by D3.
2016-12-02 11:02:58 +00:00

22 lines
373 B
JavaScript

const React = require('react');
const ReactHotLoader = require('react-hot-loader');
const ReactRedux = require('react-redux');
const Graph = require('./graph');
const {
AppContainer
} = ReactHotLoader;
const {
Provider
} = ReactRedux;
module.exports = ({
store
}) =>
<AppContainer>
<Provider store={store}>
<Graph />
</Provider>
</AppContainer>;