aboutsummaryrefslogtreecommitdiff
path: root/bench/install/app/entry.client.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'bench/install/app/entry.client.tsx')
-rw-r--r--bench/install/app/entry.client.tsx18
1 files changed, 18 insertions, 0 deletions
diff --git a/bench/install/app/entry.client.tsx b/bench/install/app/entry.client.tsx
new file mode 100644
index 000000000..186cd9344
--- /dev/null
+++ b/bench/install/app/entry.client.tsx
@@ -0,0 +1,18 @@
+/**
+ * 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/docs/en/main/file-conventions/entry.client
+ */
+
+import { RemixBrowser } from "@remix-run/react";
+import { startTransition, StrictMode } from "react";
+import { hydrateRoot } from "react-dom/client";
+
+startTransition(() => {
+ hydrateRoot(
+ document,
+ <StrictMode>
+ <RemixBrowser />
+ </StrictMode>,
+ );
+});