Examples: fixed HMR of components issue (#303)

This commit is contained in:
Rajesh Aravapalli 2016-07-11 21:33:14 +05:30 committed by Mihail Diordiev
parent fafe4e5d59
commit 619a18b26a
2 changed files with 4 additions and 2 deletions

View File

@ -17,9 +17,10 @@ render(
if (module.hot) { if (module.hot) {
module.hot.accept('./containers/Root', () => { module.hot.accept('./containers/Root', () => {
const RootContainer = require('./containers/Root').default;
render( render(
<AppContainer> <AppContainer>
<Root <RootContainer
store={ store } store={ store }
/> />
</AppContainer>, </AppContainer>,

View File

@ -18,9 +18,10 @@ render(
if (module.hot) { if (module.hot) {
module.hot.accept('./containers/Root', () => { module.hot.accept('./containers/Root', () => {
const RootContainer = require('./containers/Root').default;
render( render(
<AppContainer> <AppContainer>
<Root <RootContainer
store={ store } store={ store }
/> />
</AppContainer>, </AppContainer>,