1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
export const server = (req) =>
new Response(
`<html>
<head>
<title>TLDraw React Example</title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Inter:wght@500;700&display=swap"/>
<link rel="stylesheet" href="https://esm.sh/tldraw@2.3.0/tldraw.css"/>
<style> body { font-family: "Inter"; } </style>
</head>
<body>
<div id="root"></div>
<script type="module" src="https://esm.town/v/janpaul123/reacttldrawclient"></script/>
</body>
</html>`,
{ headers: { "Content-Type": "text/html" } },
);