diff options
| author | Maksymilian Jopek <maks@jopek.eu> | 2025-04-28 18:03:28 +0200 |
|---|---|---|
| committer | Maksymilian Jopek <maks@jopek.eu> | 2025-04-28 18:03:28 +0200 |
| commit | 0539d6963ebedd554cd3cd36b6c94df9659d6a6b (patch) | |
| tree | 9408c7928d0725b114d0adfa811ba2bb3859f495 /src/index.tsx | |
| download | rustberry-frontend-0539d6963ebedd554cd3cd36b6c94df9659d6a6b.tar.gz rustberry-frontend-0539d6963ebedd554cd3cd36b6c94df9659d6a6b.tar.zst rustberry-frontend-0539d6963ebedd554cd3cd36b6c94df9659d6a6b.zip | |
Simple frontend version with mock API
Diffstat (limited to 'src/index.tsx')
| -rw-r--r-- | src/index.tsx | 17 |
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"), +); |
