本页还没有译文
本页 9 段还没译成Tiếng Việt,下面显示的是英文原文。createRootRoute function
还没翻译译自英文(tanstack.com)本页 9 段都还没译
The createRootRoute function returns a new root route instance. A root route instance can then be used to create a route-tree.
createRootRoute options
The options that will be used to configure the root route instance.
- Type:
Omit<
RouteOptions,
| 'path'
| 'id'
| 'getParentRoute'
| 'caseSensitive'
| 'parseParams'
| 'stringifyParams'
>RouteOptions- Optional
createRootRoute returns
A new Route instance.
Examples
import { createRootRoute, createRouter, Outlet } from '@tanstack/react-router'
const rootRoute = createRootRoute({
component: () => <Outlet />,
// ... root route options
})
const routeTree = rootRoute.addChildren([
// ... other routes
])
const router = createRouter({
routeTree,
})AI 翻译查看英文原文