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

client.tsx

16 lines467 Bytes

1// DO NOT DELETE THIS FILE!!!
2// This file is a good smoke test to make sure the custom client entry is working
3import { StrictMode, startTransition } from 'react'
4import { hydrateRoot } from 'react-dom/client'
5import { StartClient } from '@tanstack/react-start/client'
6​
7console.log("[client-entry]: using custom client entry in 'src/client.tsx'")
8​
9startTransition(() => {
10 hydrateRoot(
11 document,
12 <StrictMode>
13 <StartClient />
14 </StrictMode>,
15 )
16})