aboutsummaryrefslogtreecommitdiff
path: root/bench/react-hello-world/react-hello-world.deno.jsx
diff options
context:
space:
mode:
authorGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-13 15:32:25 -0700
committerGravatar Jarred Sumner <709451+Jarred-Sumner@users.noreply.github.com> 2022-10-13 15:32:25 -0700
commitaf033c02c5fbaade201abfe332f376879d9e6885 (patch)
treeec60cdd34c70ac338cc409e34d748bd99341a678 /bench/react-hello-world/react-hello-world.deno.jsx
parent40506e33e73018103bcf08d3e0087eb915ba472b (diff)
downloadbun-af033c02c5fbaade201abfe332f376879d9e6885.tar.gz
bun-af033c02c5fbaade201abfe332f376879d9e6885.tar.zst
bun-af033c02c5fbaade201abfe332f376879d9e6885.zip
Fix bench
Diffstat (limited to 'bench/react-hello-world/react-hello-world.deno.jsx')
-rw-r--r--bench/react-hello-world/react-hello-world.deno.jsx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bench/react-hello-world/react-hello-world.deno.jsx b/bench/react-hello-world/react-hello-world.deno.jsx
index 2b0bb9b74..fabbfcfcb 100644
--- a/bench/react-hello-world/react-hello-world.deno.jsx
+++ b/bench/react-hello-world/react-hello-world.deno.jsx
@@ -1,11 +1,11 @@
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>
+ <p>This is an example.</p>
</body>
</html>
);
@@ -17,7 +17,7 @@ const headers = {
},
};
-await serve(
+Deno.serve(
async (req) => {
return new Response(await renderToReadableStream(<App />), headers);
},