1
0
mirror of https://github.com/yldio/copilot.git synced 2025-01-09 18:40:12 +02:00
copilot/spikes/stacks/redux-thunk/src/client/index.js

19 lines
327 B
JavaScript
Raw Normal View History

2016-10-14 12:45:12 +03:00
const worker = require('./worker'); // singleton
const React = require('react');
const ReactDOM = require('react-dom');
const render = () => {
const Root = require('./root');
ReactDOM.render(
<Root />,
document.getElementById('root')
);
};
render();
if (module.hot) {
module.hot.accept('./root', render);
}