aboutsummaryrefslogtreecommitdiffhomepage
path: root/frontend/app/entry.client.tsx
diff options
context:
space:
mode:
authornsfisis <nsfisis@gmail.com>2024-07-27 01:17:37 +0900
committernsfisis <nsfisis@gmail.com>2024-07-27 05:59:23 +0900
commit18308a22879dc9143a03bcbe53cf0c5e8e49ee1f (patch)
treec1c108e27b1c369f30670480e19082044ae1b8a0 /frontend/app/entry.client.tsx
parente487036c5cc9f5b59e9efbaec132a2fd60896317 (diff)
downloadphperkaigi-2025-albatross-18308a22879dc9143a03bcbe53cf0c5e8e49ee1f.tar.gz
phperkaigi-2025-albatross-18308a22879dc9143a03bcbe53cf0c5e8e49ee1f.tar.zst
phperkaigi-2025-albatross-18308a22879dc9143a03bcbe53cf0c5e8e49ee1f.zip
remix
Diffstat (limited to 'frontend/app/entry.client.tsx')
-rw-r--r--frontend/app/entry.client.tsx12
1 files changed, 12 insertions, 0 deletions
diff --git a/frontend/app/entry.client.tsx b/frontend/app/entry.client.tsx
new file mode 100644
index 0000000..442da4f
--- /dev/null
+++ b/frontend/app/entry.client.tsx
@@ -0,0 +1,12 @@
+import { RemixBrowser } from "@remix-run/react";
+import { startTransition, StrictMode } from "react";
+import { hydrateRoot } from "react-dom/client";
+
+startTransition(() => {
+ hydrateRoot(
+ document,
+ <StrictMode>
+ <RemixBrowser />
+ </StrictMode>,
+ );
+});