diff --git a/src/ts/@overflow/webapp/index.tsx b/src/ts/@overflow/webapp/index.tsx index 95fcaa8..5ed98e1 100644 --- a/src/ts/@overflow/webapp/index.tsx +++ b/src/ts/@overflow/webapp/index.tsx @@ -30,7 +30,7 @@ import { import config from './config'; import WebAppReducer from '@overflow/webapp/redux/webapp_reducer'; - +import WebApp from './pages/webapp'; // declare let module: { hot: any }; declare global { @@ -114,8 +114,8 @@ class WebAppApplication { private rederDevelopment(): void { if (module.hot) { - module.hot.accept('./pages/webapp', async () => { - const NextApp = (await import('./pages/webapp')).default; + module.hot.accept('./pages/webapp', () => { + const NextApp = require('./pages/webapp').default; ReactDOM.render( @@ -128,20 +128,21 @@ class WebAppApplication { this.container, ); }); - } else { - ReactDOM.render( - - - - - - - - , - this.container, - ); } + ReactDOM.render( + + + + + + + + , + this.container, + ); + + } diff --git a/src/ts/@overflow/webapp/pages/webapp.tsx b/src/ts/@overflow/webapp/pages/webapp.tsx index 9913361..b43b9bc 100644 --- a/src/ts/@overflow/webapp/pages/webapp.tsx +++ b/src/ts/@overflow/webapp/pages/webapp.tsx @@ -14,7 +14,7 @@ class WebApp extends React.Component { public render(): JSX.Element { return ( - Hello + Hello... ); } }