/ app / client.tsx
client.tsx
1  import * as React from 'react'
2  import { hydrateRoot } from 'react-dom/client'
3  import { StartClient } from '@tanstack/start'
4  import { createRouter } from './router.tsx'
5  
6  const router = createRouter()
7  
8  hydrateRoot(document.getElementById('root')!, <StartClient router={router} />)