summaryrefslogtreecommitdiffstats
path: root/src/index.tsx
diff options
context:
space:
mode:
authorMaksymilian Jopek <maks@jopek.eu>2025-04-28 18:03:28 +0200
committerMaksymilian Jopek <maks@jopek.eu>2025-04-28 18:03:28 +0200
commit0539d6963ebedd554cd3cd36b6c94df9659d6a6b (patch)
tree9408c7928d0725b114d0adfa811ba2bb3859f495 /src/index.tsx
downloadrustberry-frontend-master.tar.gz
rustberry-frontend-master.tar.zst
rustberry-frontend-master.zip
Initial commitHEADmaster
Simple frontend version with mock API
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"),
+);