File size: 573 Bytes
a417977
 
 
 
 
 
 
1813a37
a417977
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import {h, render} from "preact"
import {App} from "./app"
import {ContextsProvider} from "@/utils/context";
import {routeCtx} from "@/contexts/route";
import {settingsCtx} from "@/contexts/settings";
import {topicsCtx} from "@/contexts/topics";
import {logCtx} from "@/contexts/log";

const container = document.getElementById('app');

if (!container) throw new Error("Root element not found not found")

// @ts-ignore
render(h(ContextsProvider, {
    contexts: [
        routeCtx,
        settingsCtx,
        topicsCtx,
        logCtx,
    ]
}, h(App, null)), container)