xnl-admin/app/entry.client.tsx

19 lines
583 B
TypeScript
Raw Normal View History

2024-09-06 09:44:02 +02:00
/**
* By default, Remix will handle hydrating your app on the client for you.
* You are free to delete this file if you'd like to, but if you ever want it revealed again, you can run `npx remix reveal`
* For more information, see https://remix.run/file-conventions/entry.client
*/
2024-09-06 12:28:50 +02:00
import { RemixBrowser } from '@remix-run/react';
import { startTransition, StrictMode } from 'react';
import { hydrateRoot } from 'react-dom/client';
2024-09-06 09:44:02 +02:00
startTransition(() => {
2024-09-06 12:28:50 +02:00
hydrateRoot(
document,
<StrictMode>
<RemixBrowser />
</StrictMode>
);
2024-09-06 09:44:02 +02:00
});