2020-08-23 04:04:58 +00:00
|
|
|
import { hydrate } from 'inferno-hydrate';
|
|
|
|
import { BrowserRouter } from 'inferno-router';
|
2020-10-26 07:09:44 +00:00
|
|
|
import { initializeSite } from '../shared/initialize';
|
2020-09-06 16:15:25 +00:00
|
|
|
import { App } from '../shared/components/app';
|
2020-08-23 04:04:58 +00:00
|
|
|
|
2020-12-24 01:58:27 +00:00
|
|
|
const site = window.isoData.site_res;
|
2020-10-26 07:09:44 +00:00
|
|
|
initializeSite(site);
|
|
|
|
|
2020-08-23 04:04:58 +00:00
|
|
|
const wrapper = (
|
|
|
|
<BrowserRouter>
|
2020-12-24 01:58:27 +00:00
|
|
|
<App siteRes={window.isoData.site_res} />
|
2020-08-23 04:04:58 +00:00
|
|
|
</BrowserRouter>
|
|
|
|
);
|
2020-09-07 03:41:46 +00:00
|
|
|
|
2020-08-23 04:04:58 +00:00
|
|
|
hydrate(wrapper, document.getElementById('root'));
|