build: added typings for hot reload (#187)

This commit is contained in:
Thomas Klein
2019-10-12 11:41:54 +02:00
committed by Juan Picado @jotadeveloper
parent 7548c89401
commit 3b4d823845
3 changed files with 7 additions and 3 deletions

View File

@@ -19,9 +19,7 @@ const renderApp = (Component: React.ElementType): void => {
renderApp(App);
// @ts-ignore
if (module.hot) {
// @ts-ignore
module.hot.accept('./App', () => {
renderApp(App);
});