aboutsummaryrefslogtreecommitdiff
path: root/bench/react-hello-world.deno.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'bench/react-hello-world.deno.jsx')
-rw-r--r--bench/react-hello-world.deno.jsx25
1 files changed, 0 insertions, 25 deletions
diff --git a/bench/react-hello-world.deno.jsx b/bench/react-hello-world.deno.jsx
deleted file mode 100644
index df4eb3cc9..000000000
--- a/bench/react-hello-world.deno.jsx
+++ /dev/null
@@ -1,25 +0,0 @@
-import { renderToReadableStream } from "https://esm.run/react-dom/server";
-import { serve } from "https://deno.land/std@0.146.0/http/server.ts";
-import * as React from "https://esm.run/react";
-
-const App = () => (
- <html>
- <body>
- <h1>Hello World</h1>
- </body>
- </html>
-);
-
-const headers = {
- headers: {
- "Content-Type": "text/html",
- "Cache-Control": "no-transform" // disables response body auto compression, see https://deno.land/manual/runtime/http_server_apis#automatic-body-compression
- },
-};
-
-await serve(
- async (req) => {
- return new Response(await renderToReadableStream(<App />), headers);
- },
- { port: 8080 }
-);