import React from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Test from './Test';

const render = (Component) => {
  ReactDOM.render(
    <AppContainer>
      <Component />
    </AppContainer>,
    document.getElementById('react-container'),
  );
};

render(Test);

if (module.hot) {
  module.hot.accept('./Test', () => { render(Test); });
}

import React, { StrictMode } from 'react';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import Test from './Test';

const render = (Component) => {
  ReactDOM.render(
    <StrictMode>
      <AppContainer>
        <Component />
      </AppContainer>
    </StrictMode>,
    document.getElementById('react-container'),
  );
};

render(Test);

if (module.hot) {
  module.hot.accept('./Test', () => { render(Test); });
}

Enable StrictMode in test suite
Enable StrictMode in test suite
