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

rootComponent.tsx

25 lines668 Bytes

1import { Link, Outlet } from '@router-mono-react-query/router'
2import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
3import { ReactQueryDevtools } from '@tanstack/react-query-devtools'
4​
5export function RootComponent() {
6 return (
7 <>
8 <div className="p-2 flex gap-2 text-lg">
9 <Link
10 to="/"
11 activeProps={{
12 className: 'font-bold',
13 }}
14 activeOptions={{ exact: true }}
15 >
16 Posts list
17 </Link>
18 </div>
19 <hr />
20 <Outlet />
21 <ReactQueryDevtools buttonPosition="top-right" />
22 <TanStackRouterDevtools position="bottom-right" />
23 </>
24 )