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

StartServer.tsx

9 lines282 Bytes

1import * as React from 'react'
2import { RouterProvider } from '@tanstack/react-router'
3import type { AnyRouter } from '@tanstack/router-core'
4​
5export function StartServer<TRouter extends AnyRouter>(props: {
6 router: TRouter
7}) {
8 return <RouterProvider router={props.router} />
9}