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

client.tsx

9 lines284 Bytes

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