From b685cd49a6360f55ad2752c5225fad8fe2ac0f05 Mon Sep 17 00:00:00 2001
From: Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com>
Date: Mon, 4 Jul 2022 16:41:16 -0700
Subject: [bench] Add a react ssr hello world

---
 bench/react-hello-world.jsx | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)
 create mode 100644 bench/react-hello-world.jsx

(limited to 'bench/react-hello-world.jsx')

diff --git a/bench/react-hello-world.jsx b/bench/react-hello-world.jsx
new file mode 100644
index 000000000..6715dd22f
--- /dev/null
+++ b/bench/react-hello-world.jsx
@@ -0,0 +1,19 @@
+// import { renderToReadableStream } from "react-dom/server.browser";
+var { renderToReadableStream } = import.meta.require(
+  "../test/bun.js/reactdom-bun.js"
+);
+
+const headers = {
+  headers: {
+    "Content-Type": "text/html",
+  },
+};
+
+export default {
+  async fetch(req) {
+    return new Response(
+      await renderToReadableStream(<div>Hello World</div>),
+      headers
+    );
+  },
+};
-- 
cgit v1.2.3

