ing
This commit is contained in:
parent
6b9ff2db2d
commit
59415bd7ac
|
@ -30,7 +30,7 @@ import {
|
||||||
|
|
||||||
import config from './config';
|
import config from './config';
|
||||||
import WebAppReducer from '@overflow/webapp/redux/webapp_reducer';
|
import WebAppReducer from '@overflow/webapp/redux/webapp_reducer';
|
||||||
|
import WebApp from './pages/webapp';
|
||||||
// declare let module: { hot: any };
|
// declare let module: { hot: any };
|
||||||
|
|
||||||
declare global {
|
declare global {
|
||||||
|
@ -114,8 +114,8 @@ class WebAppApplication {
|
||||||
|
|
||||||
private rederDevelopment(): void {
|
private rederDevelopment(): void {
|
||||||
if (module.hot) {
|
if (module.hot) {
|
||||||
module.hot.accept('./pages/webapp', async () => {
|
module.hot.accept('./pages/webapp', () => {
|
||||||
const NextApp = (await import('./pages/webapp')).default;
|
const NextApp = require('./pages/webapp').default;
|
||||||
ReactDOM.render(
|
ReactDOM.render(
|
||||||
<AppContainer>
|
<AppContainer>
|
||||||
<Provider store={this.store}>
|
<Provider store={this.store}>
|
||||||
|
@ -128,20 +128,21 @@ class WebAppApplication {
|
||||||
this.container,
|
this.container,
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
} else {
|
|
||||||
ReactDOM.render(
|
|
||||||
<AppContainer>
|
|
||||||
<Provider store={this.store}>
|
|
||||||
<ConnectedRouter history={this.history}>
|
|
||||||
|
|
||||||
</ConnectedRouter>
|
|
||||||
</Provider>
|
|
||||||
</AppContainer>
|
|
||||||
,
|
|
||||||
this.container,
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
ReactDOM.render(
|
||||||
|
<AppContainer>
|
||||||
|
<Provider store={this.store}>
|
||||||
|
<ConnectedRouter history={this.history}>
|
||||||
|
<WebApp/>
|
||||||
|
</ConnectedRouter>
|
||||||
|
</Provider>
|
||||||
|
</AppContainer>
|
||||||
|
,
|
||||||
|
this.container,
|
||||||
|
);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -14,7 +14,7 @@ class WebApp extends React.Component<Props, State> {
|
||||||
|
|
||||||
public render(): JSX.Element {
|
public render(): JSX.Element {
|
||||||
return (
|
return (
|
||||||
<b>Hello</b>
|
<b>Hello...</b>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user