Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created May 26, 2018 12:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannwamba/e7ad1094d1dbec28e012028b3f874c21 to your computer and use it in GitHub Desktop.
Save christiannwamba/e7ad1094d1dbec28e012028b3f874c21 to your computer and use it in GitHub Desktop.
if(module.hot){
module.hot.accept('./App', () => {
const NextApp = require('./App').default;
ReactDOM.render(
<AppContainer>
<NextApp />
</AppContainer>,
document.getElementById('root')
);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment