Skip to content
Source
Sign inSign up
TanStack/router
Open History to see the last commit

_pathlessLayout.tsx

16 lines337 Bytes

1import { Outlet, createFileRoute } from '@tanstack/react-router'
2​
3export const Route = createFileRoute('/_pathlessLayout')({
4 component: LayoutComponent,
5})
6​
7function LayoutComponent() {
8 return (
9 <div className="p-2">
10 <div className="border-b">I'm a layout</div>
11 <div>
12 <Outlet />
13 </div>
14 </div>
15 )