1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// The server response includes a script referencing the client val
export const server = (req) =>
new Response(
`<html>
<head>
<title>React Example</title>
</head>
<body>
<main id="root"></main>
<script type="module" src="https://esm.town/v/nbbaier/react_client"></script/>
</body>
</html>`,
{
headers: {
"Content-Type": "text/html",
},
},
);