content: /**
   * 版权所有：浙江薪福多网络科技有限公司
   * 作者：Tony
   * 创建时间：2017/7/31
   */
  import React from 'react'
  import ReactDom from 'react-dom'
  import {BrowserRouter} from 'react-router-dom'
  import {Provider} from 'mobx-react'
  import createHistory from 'history/createBrowserHistory'
  import {AppContainer} from 'react-hot-loader'
  import Stores from './stores/index'
  import App from './app'
  
  
  const history = createHistory();
  const MOUNT_NODE = document.getElementById('app');
  
  const render = Component => {
      ReactDom.render(
          <AppContainer>
              <Provider {...Stores}>
                  <BrowserRouter>
                      <Component history={history}/>
                  </BrowserRouter>
              </Provider>
          </AppContainer>,
          MOUNT_NODE
      );
  };
  
  render(App);
  
  if (module.hot) {
      // console.log('react-hot-loader');
      module.hot.accept()
      // module.hot.accept('./app', () => {
      //     const NextApp = require('./app').default;
      //     render(NextApp)
      // })
  }