This commit is contained in:
2026-02-04 17:59:42 +08:00
parent aa63938aea
commit 3b60478036
21 changed files with 1805 additions and 912 deletions

27
src/routes/__root.tsx Normal file
View File

@@ -0,0 +1,27 @@
import { Link, Outlet, createRootRoute } from '@tanstack/react-router'
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
export const Route = createRootRoute({
component: RootComponent,
})
function RootComponent() {
return (
<>
<div className="p-2 flex gap-2 text-lg">
<Link
to="/"
activeProps={{
className: 'font-bold',
}}
activeOptions={{ exact: true }}
>
Home
</Link>
</div>
<hr />
<Outlet />
<TanStackRouterDevtools position="bottom-right" />
</>
)
}