import React from 'react'; import { render } from 'react-dom'; import { hashHistory } from 'react-router'; import { AppContainer } from 'react-hot-loader'; import { syncHistoryWithStore } from 'react-router-redux'; import Root from './containers/Root'; import configureStore from './store/configureStore'; const store = configureStore(); const history = syncHistoryWithStore(hashHistory, store); render( , document.getElementById('root') ); if (module.hot) { module.hot.accept('./containers/Root', () => { const NextRoot = require('./containers/Root'); // eslint-disable-line global-require render( , document.getElementById('root') ); }); }