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

router.tsx

11 lines233 Bytes

1import { createRouter } from '@tanstack/react-router';
2import { routeTree } from './routeTree.gen';
3​
4export function getRouter() {
5 const router = createRouter({
6 routeTree,
7 scrollRestoration: true,
8 });
9​
10 return router;