UNPKG

@virtualstate/examples

Version:
20 lines 714 B
import { h } from "@virtualstate/fringe"; import { render } from "@virtualstate/dom"; async function SiteContents() { return h("p", null, "Hello World!"); } async function Site() { const root = document.createElement("div"); await render(h(SiteContents), root); document.body.append(root); } export { Site, SiteContents }; export default (h("html", null, h("body", null, h("script", { type: "application/javascript" }, `const { h } = await import("@virtualstate/fringe");`, `const { render } = await import("@virtualstate/dom");`, SiteContents.toString(), Site.toString(), `await Site()`)))); //# sourceMappingURL=start.js.map