text: import React, { Fragment } from 'react';
  import { render } from 'react-dom';
  import { AppContainer as ReactHotAppContainer } from 'react-hot-loader';
  import Root from './Root';
  import { configureStore, history } from './store/configureStore';
  import './app.global.css';
  
  const store = configureStore();
  
  const AppContainer = process.env.PLAIN_HMR ? Fragment : ReactHotAppContainer;
  render(
    <AppContainer>
      <Root store={store} history={history} />
    </AppContainer>,
    document.getElementById('root')
  );
  
  if (module.hot) {
    module.hot.accept('./Root', () => {
      // eslint-disable-next-line global-require
      const NextRoot = require('./Root').default;
      render(
        <AppContainer>
          <NextRoot store={store} history={history} />
        </AppContainer>,
        document.getElementById('root')
      );
    });
  }
  