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

Function PathlessLayout2Component

examples/solid/basic/src/main.tsx:153–180  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

151})
152
153function PathlessLayout2Component() {
154 return (
155 <div>
156 <div>I'm a nested pathless layout</div>
157 <div class="flex gap-2 border-b">
158 <Link
159 to="/route-a"
160 activeProps={{
161 class: 'font-bold',
162 }}
163 >
164 Go to Route A
165 </Link>
166 <Link
167 to="/route-b"
168 activeProps={{
169 class: 'font-bold',
170 }}
171 >
172 Go to Route B
173 </Link>
174 </div>
175 <div>
176 <Outlet />
177 </div>
178 </div>
179 )
180}
181
182const pathlessLayoutARoute = createRoute({
183 getParentRoute: () => nestedPathlessLayout2Route,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected