From dba80e2c10cf06cd2fcba94422f1087bd35a6a67 Mon Sep 17 00:00:00 2001 From: mondaychen Date: Thu, 12 May 2016 15:00:42 -0400 Subject: [PATCH] fix react-hot-reload using in todomvc --- examples/todomvc/index.js | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/examples/todomvc/index.js b/examples/todomvc/index.js index ac9a9c5a..5fc0e035 100644 --- a/examples/todomvc/index.js +++ b/examples/todomvc/index.js @@ -8,20 +8,19 @@ import Root from './containers/Root'; const store = configureStore(); render( - , + + + , document.getElementById('root') ); if (module.hot) { module.hot.accept('./containers/Root', () => { + const Root = require('./containers/Root').default; render( - , + + + , document.getElementById('root') ); });