mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-03 17:51:14 +00:00
22 lines
549 B
TypeScript
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);
|
|
}
|