13 lines
271 B
TypeScript
13 lines
271 B
TypeScript
import { startTransition, StrictMode } from 'react'
|
|
import { hydrateRoot } from 'react-dom/client'
|
|
import { HydratedRouter } from 'react-router/dom'
|
|
|
|
startTransition(() => {
|
|
hydrateRoot(
|
|
document,
|
|
<StrictMode>
|
|
<HydratedRouter />
|
|
</StrictMode>,
|
|
)
|
|
})
|