headplane/app/entry.client.tsx

19 lines
370 B
TypeScript
Raw Normal View History

2025-01-24 08:17:12 -05:00
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 });
});
}
2025-01-06 08:19:32 +05:30
startTransition(() => {
2025-01-24 08:17:12 -05:00
hydrateRoot(
document,
<StrictMode>
<HydratedRouter />
</StrictMode>,
);
2025-01-06 08:19:32 +05:30
});