1
2
3
4
5
6
7
8
9
10
/** @jsxImportSource npm:preact */
import type { VNode } from "npm:preact";
import { render } from "npm:preact-render-to-string";
export const html = (html: VNode) =>
render(
<div id="root">
{html}
</div>,
);
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
v10
March 31, 2024