1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
/** @jsxImportSource https://esm.sh/react */
import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
const browserUserAgent: string =
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/89.0.142.86 Safari/537.36";
const exampleJSX = <p>Hello, World!</p>;
console.log(
await fetchText(import.meta.url, {
headers: {
"User-Agent": browserUserAgent, // comment this line out to see untransiled code
},
}),
);