19 lines
370 B
TypeScript
19 lines
370 B
TypeScript
import { StrictMode, startTransition } from 'react';
|
|
import { hydrateRoot } from 'react-dom/client';
|
|
import { HydratedRouter } from 'react-router/dom';
|
|
|
|
if (import.meta.env.DEV) {
|
|
import('react-scan').then(({ scan }) => {
|
|
scan({ enabled: true });
|
|
});
|
|
}
|
|
|
|
startTransition(() => {
|
|
hydrateRoot(
|
|
document,
|
|
<StrictMode>
|
|
<HydratedRouter />
|
|
</StrictMode>,
|
|
);
|
|
});
|