mirror of
https://github.com/Dokploy/examples.git
synced 2026-06-26 17:45:52 +02:00
feat(tanstack): initialize TanStack project with routing, API, and error handling components
This commit is contained in:
16
tanstack/src/routes/_pathlessLayout.tsx
Normal file
16
tanstack/src/routes/_pathlessLayout.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import { Outlet, createFileRoute } from '@tanstack/react-router'
|
||||
|
||||
export const Route = createFileRoute('/_pathlessLayout')({
|
||||
component: LayoutComponent,
|
||||
})
|
||||
|
||||
function LayoutComponent() {
|
||||
return (
|
||||
<div className="p-2">
|
||||
<div className="border-b">I'm a layout</div>
|
||||
<div>
|
||||
<Outlet />
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user