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
|
| Rev | Line | |
|---|
| [700e2f9] | 1 | /* @refresh reload */
|
|---|
| 2 | import "@/index.css";
|
|---|
| 3 | import { render } from "solid-js/web";
|
|---|
| 4 | import "solid-devtools";
|
|---|
| 5 |
|
|---|
| 6 | import App from "./App";
|
|---|
| 7 |
|
|---|
| 8 | const root = document.getElementById("root");
|
|---|
| 9 |
|
|---|
| 10 | if (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 |
|
|---|
| 16 | render(() => <App />, root!);
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.