diff options
author | 2022-10-13 15:32:25 -0700 | |
---|---|---|
committer | 2022-10-13 15:32:25 -0700 | |
commit | af033c02c5fbaade201abfe332f376879d9e6885 (patch) | |
tree | ec60cdd34c70ac338cc409e34d748bd99341a678 /bench/react-hello-world/react-hello-world.deno.jsx | |
parent | 40506e33e73018103bcf08d3e0087eb915ba472b (diff) | |
download | bun-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.jsx | 4 |
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); }, |