13 lines
275 B
TypeScript
13 lines
275 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>
|
||
|
);
|
||
|
});
|