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

Function RootDocument

e2e/solid-start/basic-solid-query/src/routes/__root.tsx:77–141  ·  view source on GitHub ↗
(props: { children?: any })

Source from the content-addressed store, hash-verified

75}
76
77function RootDocument(props: { children?: any }) {
78 return (
79 <html>
80 <head>
81 <HydrationScript />
82 </head>
83 <body>
84 <HeadContent />
85 <div class="p-2 flex gap-2 text-lg">
86 <Link
87 to="/"
88 activeProps={{
89 class: 'font-bold',
90 }}
91 activeOptions={{ exact: true }}
92 >
93 Home
94 </Link>{' '}
95 <Link
96 to="/posts"
97 activeProps={{
98 class: 'font-bold',
99 }}
100 >
101 Posts
102 </Link>{' '}
103 <Link
104 to="/users"
105 activeProps={{
106 class: 'font-bold',
107 }}
108 >
109 Users
110 </Link>{' '}
111 <Link
112 to="/layout-a"
113 activeProps={{
114 class: 'font-bold',
115 }}
116 >
117 Layout
118 </Link>{' '}
119 <Link
120 to="/deferred"
121 activeProps={{
122 class: 'font-bold',
123 }}
124 >
125 Deferred
126 </Link>{' '}
127 <Link
128 // @ts-expect-error
129 to="/this-route-does-not-exist"
130 >
131 This Route Does Not Exist
132 </Link>
133 </div>
134 <hr />

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected