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

_pathlessLayout.tsx

17 lines386 Bytes

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