joyent-portal/spikes/architecture/react-d3/client/index.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

19 lines
328 B
JavaScript

const ReactDOM = require('react-dom');
const React = require('react');
const store = require('./store')();
const render = () => {
const Root = require('./root');
ReactDOM.render(
<Root store={store} />,
document.getElementById('root')
);
};
render();
if (module.hot) {
module.hot.accept('./root', render);
}