joyent-portal/legacy/spikes/fuzzy-search/react-selectize-stateless/src/index.js

19 lines
328 B
JavaScript
Raw Normal View History

2017-01-04 14:14:51 +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);
}