Files
tf_code/packages/ui/src/index.tsx
2025-10-16 14:53:44 -05:00

23 lines
469 B
TypeScript

/* @refresh reload */
import { render } from "solid-js/web"
import { MetaProvider } from "@solidjs/meta"
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(
() => (
<MetaProvider>
<App />
</MetaProvider>
),
root!,
)