The best way to control Claude Code, Codex and more from any computer or phone

main
tsx 18 lines 603 Bytes
Raw
1 // oxlint-disable import/no-unassigned-import
2 /* @refresh reload */
3 import "solid-devtools";
4 import "./index.css";
5 import { Router } from "@solidjs/router";
6 import { render } from "solid-js/web";
7 import App from "./app";
8 import { routes } from "./routes";
9
10 const root = document.getElementById("root");
11
12 if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
13 throw new Error(
14 "Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?",
15 );
16 }
17
18 render(() => <Router root={(props) => <App>{props.children}</App>}>{routes}</Router>, root);