import * as React from "react" ; import { render } from "react-dom" ; import { AppContainer } from "react-hot-loader" ; import App from "./components/App" ; import { Configuration } from "./services/Configuration" ; declare const require ; /**
 * Sample index compnent with live hot swap
 */ const rootEl = document . getElementById ( "root" ) ; Configuration . configure ( "config.json" ) . then ( ( ) => render ( < AppContainer > < App /> < /AppContainer>, rootEl)); declare let module ; if ( module . hot ) { module . hot . accept ( "./components/App" , ( ) => { const NewApp = require ( "./components/App" ) . default ; Configuration . configure ( "config.json" ) . then ( ( ) => render ( < AppContainer > < NewApp /> < /AppContainer>, rootEl)); } ) ; }