joyent-portal/legacy/spikes/stacks/redux-loop/src/client/index.js

20 lines
313 B
JavaScript
Raw Normal View History

2016-10-17 18:52:00 +03:00
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);
}