// ./src/index.js
import React from 'react';
import ReactDOM from 'react-dom';

import { AppContainer } from 'react-hot-loader';
// AppContainer is a necessary wrapper component for HMR

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)
  });
}

@@ -431,20 +431,16 @@
 ule.hot)
- %7B%0A 
  module.
@@ -479,14 +479,8 @@
 ) =%3E
- %7B%0A   
  ren
@@ -491,13 +491,7 @@
 App)
-%0A  %7D
 );%0A
-%7D%0A

Make hot reload line more succinct