Currently I\'m struggling to get HMR working in my Webpack 2 setup. I\'ll explain my entire setup so I hope this is enough for someone to understand what\'s happening.
Check this issue on GitHub or just use this in your index.js:
import React from 'react'
import ReactDOM from 'react-dom'
import { AppContainer } from 'react-hot-loader'
import App from './components/App'
const render = Component => {
ReactDOM.render(
,
document.getElementById('react-root')
)
}
render(App)
if(module.hot) {
module.hot.accept();
}