Skip to content

Instantly share code, notes, and snippets.

@cmosguy
Created August 7, 2016 04:26
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 cmosguy/e19abeb2dec5a109c723ed6d19c1521b to your computer and use it in GitHub Desktop.
Save cmosguy/e19abeb2dec5a109c723ed6d19c1521b to your computer and use it in GitHub Desktop.
import { AppContainer } from 'react-hot-loader';
import React from 'react';
import ReactDOM from 'react-dom';
import App from './components/app';
ReactDOM.render(
<App />,
document.getElementById( 'app' )
);
/* istanbul ignore next */
if ( module.hot ) {
module.hot.accept( './components/app', () => {
require( './components/app' );
ReactDOM.render(
<App />,
document.getElementById( 'app' )
);
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment