joyent-portal/spikes/list/react-infinite/src/index.js

19 lines
328 B
JavaScript
Raw Normal View History

2016-11-21 11:54:50 +02:00
const Store = require('./store');
const ReactDOM = require('react-dom');
const React = require('react');
const render = () => {
const Root = require('./root');
ReactDOM.render(
<Root store={Store()} />,
document.getElementById('root')
);
};
render();
if (module.hot) {
module.hot.accept('./root', render);
}