mirror of
https://github.com/bitcoinresearchkit/brk.git
synced 2026-04-29 09:09:58 -07:00
17 lines
389 B
TypeScript
17 lines
389 B
TypeScript
/* @refresh reload */
|
|
import { render } from "solid-js/web";
|
|
|
|
import "./styles.css";
|
|
|
|
import { App } from "./app";
|
|
|
|
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(App, root!);
|