nelreina
12/3/2016 - 4:30 AM

create-react-app hot reload script goes in index.js

create-react-app hot reload script goes in index.js

if (module.hot) {
	module.hot.accept('./App', _ => {
		const App = require('./App').default;
		ReactDOM.render(
			<App />,
			document.getElementById('root')
		);
	})
}