summaryrefslogtreecommitdiffstats
path: root/src/index.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/index.tsx')
-rw-r--r--src/index.tsx17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/index.tsx b/src/index.tsx
new file mode 100644
index 0000000..de08c81
--- /dev/null
+++ b/src/index.tsx
@@ -0,0 +1,17 @@
+/* @refresh reload */
+import "./index.css";
+
+import { Suspense } from "solid-js";
+import { render } from "solid-js/web";
+
+import { Router } from "@solidjs/router";
+import routes from "~solid-pages";
+
+render(
+ () => (
+ <Router root={(props) => <Suspense>{props.children}</Suspense>}>
+ {routes}
+ </Router>
+ ),
+ document.getElementById("root"),
+);