diff options
Diffstat (limited to 'bench/react-hello-world.jsx')
-rw-r--r-- | bench/react-hello-world.jsx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/bench/react-hello-world.jsx b/bench/react-hello-world.jsx index 6715dd22f..446173984 100644 --- a/bench/react-hello-world.jsx +++ b/bench/react-hello-world.jsx @@ -9,11 +9,16 @@ const headers = { }, }; +const App = () => ( + <html> + <body> + <h1>Hello World</h1> + </body> + </html> +); + export default { async fetch(req) { - return new Response( - await renderToReadableStream(<div>Hello World</div>), - headers - ); + return new Response(await renderToReadableStream(<App />), headers); }, }; |