mirror of
https://github.com/aljazceru/opencode.git
synced 2025-12-24 11:14:23 +01:00
23 lines
472 B
TypeScript
23 lines
472 B
TypeScript
/* @refresh reload */
|
|
import { render } from "solid-js/web"
|
|
import { MetaProvider } from "@solidjs/meta"
|
|
|
|
import Demo from "./demo"
|
|
|
|
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>
|
|
<Demo />
|
|
</MetaProvider>
|
|
),
|
|
root!,
|
|
)
|