UNPKG

@virtualstate/examples

Version:
21 lines 644 B
import { h } from "@virtualstate/fringe"; import { Runtime } from "./runtime.js"; import { Call, DefaultValue, Identity } from "./domain.js"; function* MyProgram() { const token = h("call", { [Identity]() { return token; }, [Call]({ options: { number } }) { return h("yay", { number: (number ?? 0) + 1 }, "Hi"); }, [DefaultValue]: h("in", { number: -1 }) }); yield token; yield token; yield token; } export const _EGRUN0001_MyProgram = (h(Runtime, null, h(MyProgram, null))); export const _EGRUN0001_URL = import.meta.url; //# sourceMappingURL=index.js.map