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

client.tsx

8 lines266 Bytes

1/// <reference types="vinxi/types/client" />
2import { hydrateRoot } from 'react-dom/client'
3import { StartClient } from '@tanstack/start'
4import { createRouter } from './router'
5​
6const router = createRouter()
7​
8hydrateRoot(document!, <StartClient router={router} />)