aboutsummaryrefslogtreecommitdiff
path: root/bench/react-hello-world/react-hello-world.deno.jsx
diff options
context:
space:
mode:
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);
},