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

Function Layout2Component

e2e/solid-router/basic-solid-query/src/main.tsx:187–214  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

185})
186
187function Layout2Component() {
188 return (
189 <div>
190 <div>I'm a nested layout</div>
191 <div class="flex gap-2 border-b">
192 <Link
193 to="/layout-a"
194 activeProps={{
195 class: 'font-bold',
196 }}
197 >
198 Layout A
199 </Link>
200 <Link
201 to="/layout-b"
202 activeProps={{
203 class: 'font-bold',
204 }}
205 >
206 Layout B
207 </Link>
208 </div>
209 <div>
210 <Outlet />
211 </div>
212 </div>
213 )
214}
215
216const layoutARoute = createRoute({
217 getParentRoute: () => layout2Route,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected