aboutsummaryrefslogtreecommitdiff
path: root/bench/install/app/entry.client.tsx
diff options
context:
space:
mode:
authorGravatar Colin McDonnell <colinmcd94@gmail.com> 2023-04-04 16:26:40 -0700
committerGravatar GitHub <noreply@github.com> 2023-04-04 16:26:40 -0700
commit76adc5be8a4f35730bbd81f06f043073e7160af8 (patch)
treea6e32fee2faf6418be6e6dc7c447086fa4c4ce13 /bench/install/app/entry.client.tsx
parentf3ab445c3fcae6a5177eb89e710e47f83cd7db42 (diff)
downloadbun-76adc5be8a4f35730bbd81f06f043073e7160af8.tar.gz
bun-76adc5be8a4f35730bbd81f06f043073e7160af8.tar.zst
bun-76adc5be8a4f35730bbd81f06f043073e7160af8.zip
Add npm benchmark (#2555)
* Add install bench * Update scripts and readme * remove lockfiles * Format bench * Add dev instructions
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>,
+ );
+});