mirror of
https://github.com/TanStack/router.git
synced 2026-11-18 19:34:24 +00:00
543 B
543 B
| id | title |
|---|---|
| ReactRouter | ReactRouter |
use the 'ReactRouter' to create a router to provide it to the Router Provider, 'ReactRouter' takes in routes config in the options.
import { ReactRouter } from '@tanstack/react-router'
const routeConfig = rootRoute.addChildren([indexRoute])
const router = new ReactRouter({
routeConfig,
//add other options here
})
Options
options: RouterOptions<TRouteConfig, TRouterContext>- Required
Returns
router: Router<TRouteConfig, TAllRouteInfo, TRouterContext>