From 9cb733fb3d2faf18c9f27dd63e2ec93d3ea75811 Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Mon, 3 Jul 2017 11:31:50 -0700 Subject: [PATCH] Fixed hot reload --- app/script/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/script/index.tsx b/app/script/index.tsx index 1bc91cb..0202a3c 100644 --- a/app/script/index.tsx +++ b/app/script/index.tsx @@ -20,9 +20,9 @@ ReactDOM.render( if (module.hot) { module.hot.accept("./components/App", () => { - const NextApp = require("./components/App").default; + const NextApp = require("./components/App").default as typeof App; ReactDOM.render( - + , rootElem); }); }