]> Untitled Git - lemmy-ui.git/blob - src/client/index.tsx
Adding a few more 0.18.0 API changes. (#1324)
[lemmy-ui.git] / src / client / index.tsx
1 import { hydrate } from "inferno-hydrate";
2 import { Router } from "inferno-router";
3 import { App } from "../shared/components/app/app";
4 import { initializeSite } from "../shared/utils";
5
6 import "bootstrap/js/dist/collapse";
7 import "bootstrap/js/dist/dropdown";
8 import { HistoryService } from "../shared/services/HistoryService";
9
10 const site = window.isoData.site_res;
11 initializeSite(site);
12
13 const wrapper = (
14   <Router history={HistoryService.history}>
15     <App />
16   </Router>
17 );
18
19 const root = document.getElementById("root");
20 if (root) {
21   hydrate(wrapper, root);
22 }