import { renderToString } from "npm:react-dom@18/server";
export default (req: Request) => {
return new Response(
renderToString(
<html>
<link rel="stylesheet" href="https://unpkg.com/missing.css@1.1.1" />
<main>
<h1>Hello justinenerio!</h1>
<p>This is your first val. Edit this text!</p>
</main>
</html>,
),
{ headers: { "Content-Type": "text/html" } },
);
};