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

entry-client.tsx

13 lines304 Bytes

1import * as React from 'react'
2import ReactDOM from 'react-dom/client'
3​
4import { createRouter } from './router'
5import { App } from '.'
6​
7const router = createRouter()
8​
9const state = (window as any).__TANSTACK_ROUTER_STATE__
10​
11router.hydrate(state)
12​
13ReactDOM.hydrateRoot(document, <App router={router} />)