17 lines
493 B
TypeScript
17 lines
493 B
TypeScript
/* @refresh reload */
|
|
import { render } from "solid-js/web";
|
|
import { Router } from "@solidjs/router";
|
|
|
|
import "./colors.css";
|
|
import "./index.css";
|
|
import App from "./App";
|
|
import "./colorManager";
|
|
|
|
const root = document.getElementById("root");
|
|
|
|
if (import.meta.env.DEV && !(root instanceof HTMLElement)) {
|
|
throw new Error("Root element not found. Did you forget to add it to your index.html? Or maybe the id attribute got misspelled?");
|
|
}
|
|
|
|
render(() => <Router><App /></Router>, root!);
|