Open History to see the last commit
1import {
2 HeadContent,
3 Link,
4 Outlet,
5 createRootRoute,
6} from '@tanstack/solid-router'
7import { TanStackRouterDevtools } from '@tanstack/solid-router-devtools'
8β
9export const Route = createRootRoute({
10 component: RootComponent,
11})
12β
13function RootComponent() {
14 return (
15 <>
16 <HeadContent />
17 <div class="p-2 flex gap-2 text-lg">
18 <Link
19 to="/"
20 activeProps={{
21 class: 'font-bold',
22 }}
23 activeOptions={{ exact: true }}
24 >
25 Home
26 </Link>{' '}
27 <Link
28 to="/about"
29 activeProps={{
30 class: 'font-bold',
31 }}
32 >
33 About
34 </Link>
35 </div>
36 <hr />
37 <Outlet />
38 <TanStackRouterDevtools position="bottom-right" />
39 </>
40 )
41}