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

Function Layout2Component

examples/react/basic-react-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 pathless layout</div>
191 <div className="flex gap-2 border-b">
192 <Link
193 to="/route-a"
194 activeProps={{
195 className: 'font-bold',
196 }}
197 >
198 Go to route A
199 </Link>
200 <Link
201 to="/route-b"
202 activeProps={{
203 className: 'font-bold',
204 }}
205 >
206 Go to route B
207 </Link>
208 </div>
209 <div>
210 <Outlet />
211 </div>
212 </div>
213 )
214}
215
216const pathlessLayoutARoute = createRoute({
217 getParentRoute: () => nestedPathlessLayoutRoute,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected