From 619a18b26a5482585b10eddd331ccacf582ba913 Mon Sep 17 00:00:00 2001 From: Rajesh Aravapalli Date: Mon, 11 Jul 2016 21:33:14 +0530 Subject: [PATCH] Examples: fixed HMR of components issue (#303) --- examples/counter/src/index.js | 3 ++- examples/todomvc/index.js | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/examples/counter/src/index.js b/examples/counter/src/index.js index 64f7f747..d9cf5e9e 100644 --- a/examples/counter/src/index.js +++ b/examples/counter/src/index.js @@ -17,9 +17,10 @@ render( if (module.hot) { module.hot.accept('./containers/Root', () => { + const RootContainer = require('./containers/Root').default; render( - , diff --git a/examples/todomvc/index.js b/examples/todomvc/index.js index 611459be..64743f70 100644 --- a/examples/todomvc/index.js +++ b/examples/todomvc/index.js @@ -18,9 +18,10 @@ render( if (module.hot) { module.hot.accept('./containers/Root', () => { + const RootContainer = require('./containers/Root').default; render( - ,