content: /**
   * Created by dr2009 on 2017/1/24.
   */
  
  import React from 'react'
  import ReactDOM from 'react-dom'
  // AppContainer is a necessary wrapper component for HMR
  import { AppContainer } from 'react-hot-loader'
  import App from './components/App'
  
  const render = (Component) => {
    ReactDOM.render(
      <AppContainer>
        <Component />
      </AppContainer>,
      document.getElementById('root')
    )
  }
  
  render(App)
  
  // Hot Module Replacement API
  if (module.hot) {
    module.hot.accept('./components/App', () => {
      render(App)
    })
  }
  