From 90fb76955e6cdb98dc6ce6ae053eb0b6d1415e04 Mon Sep 17 00:00:00 2001 From: crusader Date: Mon, 18 Dec 2017 20:10:20 +0900 Subject: [PATCH] ing --- src/ts/@overflow/webapp/index.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ts/@overflow/webapp/index.tsx b/src/ts/@overflow/webapp/index.tsx index 8d6c25e..0202bf6 100644 --- a/src/ts/@overflow/webapp/index.tsx +++ b/src/ts/@overflow/webapp/index.tsx @@ -19,6 +19,11 @@ import { routerMiddleware, } from 'react-router-redux'; +import { + createHashHistory, + History, +} from 'history'; + import { AppContainer, } from 'react-hot-loader'; @@ -41,11 +46,13 @@ class WebAppApplication { public constructor() { this.container = document.getElementById('appContainer'); + this.history = createHashHistory(); } public async run(): Promise { try { this.renderLoading(); + this.renderApp(); } catch (e) { console.error(e); } @@ -100,7 +107,7 @@ class WebAppApplication { private rederDevelopment(): void { if (module.hot) { module.hot.accept('./pages/webapp', async () => { - const NextApp = (await import('./pages/webapp')).default; + const NextApp = (await require('./pages/webapp')).default; ReactDOM.render(