mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-12-04 18:21:13 +00:00
22 lines
493 B
TypeScript
22 lines
493 B
TypeScript
|
import { Component } from "inferno";
|
||
|
import { hydrate } from 'inferno-hydrate';
|
||
|
import { BrowserRouter } from "inferno-router";
|
||
|
import App from "./components/App/App";
|
||
|
import { initDevTools } from "inferno-devtools";
|
||
|
|
||
|
declare global {
|
||
|
interface Window {
|
||
|
isoData: {
|
||
|
name: string,
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const wrapper = (
|
||
|
<BrowserRouter>
|
||
|
<App name={window.isoData.name}/>
|
||
|
</BrowserRouter>
|
||
|
);
|
||
|
initDevTools();
|
||
|
hydrate(wrapper, document.getElementById("root"));
|