lemmy-ui/src/client/index.tsx
2023-06-16 17:07:55 -04:00

22 lines
549 B
TypeScript

import { hydrate } from "inferno-hydrate";
import { Router } from "inferno-router";
import { App } from "../shared/components/app/app";
import { HistoryService } from "../shared/services/HistoryService";
import { initializeSite } from "../shared/utils";
import "bootstrap/js/dist/collapse";
import "bootstrap/js/dist/dropdown";
initializeSite(window.isoData.site_res);
const wrapper = (
<Router history={HistoryService.history}>
<App />
</Router>
);
const root = document.getElementById("root");
if (root) {
hydrate(wrapper, root);
}