source: frontend/src/index.tsx

main
Last change on this file was 700e2f9, checked in by 186079 <matej.milevski@…>, 5 days ago

Init

  • Property mode set to 100644
File size: 418 bytes
Line 
1/* @refresh reload */
2import "@/index.css";
3import { render } from "solid-js/web";
4import "solid-devtools";
5
6import App from "./App";
7
8const root = document.getElementById("root");
9
10if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
11 throw new Error(
12 "Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?",
13 );
14}
15
16render(() => <App />, root!);
Note: See TracBrowser for help on using the repository browser.