content: import React from 'react';
  import { render } from 'react-dom';
  import { AppContainer } from 'react-hot-loader';
  import { configureStore, history } from 'app/store/configureStore';
  import { Root } from 'app/containers/Root';
  
  import { BrowserErrorPage } from 'app/static';
  
  const store = configureStore();
  
  try {
      localStorage.setItem('__test-local-storage__', 1);
      localStorage.removeItem('__test-local-storage__');
      render(
          <AppContainer>
              <Root store={store} history={history} />
          </AppContainer>,
          document.getElementById('root')
      );
      if (module.hot) {
          module.hot.accept('./containers/Root', () => {
              const newConfigureStore = require('./store/configureStore');
              const newStore = newConfigureStore.configureStore();
              const newHistory = newConfigureStore.history;
              const NewRoot = require('./containers/Root').default;
              render(
                  <AppContainer>
                      <NewRoot store={newStore} history={newHistory} />
                  </AppContainer>,
                  document.getElementById('root')
              );
          });
      }
  } catch (e) {
      render(
          <BrowserErrorPage />,
          document.getElementById('root')
      );
  }
  