MCPcopy Create free account
hub / github.com/TanStack/router / RootComponent

Function RootComponent

examples/solid/basic-non-nested-devtools/src/main.tsx:28–70  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26})
27
28function RootComponent() {
29 return (
30 <>
31 <div class="p-2 flex gap-2 text-lg border-b">
32 <Link
33 to="/"
34 activeProps={{
35 class: 'font-bold',
36 }}
37 activeOptions={{ exact: true }}
38 >
39 Home
40 </Link>{' '}
41 <Link
42 to="/posts"
43 activeProps={{
44 class: 'font-bold',
45 }}
46 >
47 Posts
48 </Link>{' '}
49 <Link
50 to="/route-a"
51 activeProps={{
52 class: 'font-bold',
53 }}
54 >
55 Pathless Layout
56 </Link>{' '}
57 <Link
58 // @ts-expect-error
59 to="/this-route-does-not-exist"
60 activeProps={{
61 class: 'font-bold',
62 }}
63 >
64 This Route Does Not Exist
65 </Link>
66 </div>
67 <Outlet />
68 </>
69 )
70}
71const indexRoute = createRoute({
72 getParentRoute: () => rootRoute,
73 path: '/',

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected