-
Notifications
You must be signed in to change notification settings - Fork 417
Expand file tree
/
Copy pathapp.tsx
More file actions
28 lines (26 loc) · 745 Bytes
/
app.tsx
File metadata and controls
28 lines (26 loc) · 745 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import { MetaProvider, Title } from "@solidjs/meta";
import { Router } from "@solidjs/router";
import { FileRoutes } from "@solidjs/start/router";
import { Loading } from "solid-js";
import "./app.css";
export default function App() {
return (
<Router
root={props => (
<MetaProvider>
<Title>SolidStart - CSS Fixture</Title>
<div class="mx-auto max-w-5xl p-10 pt-3">
<header class="flex gap-3 mb-4">
<a href="/">Index</a>
<a href="/empty">Empty</a>
<a href="/unstyled">Unstyled</a>
</header>
<Loading>{props.children}</Loading>
</div>
</MetaProvider>
)}
>
<FileRoutes />
</Router>
);
}