UNPKG

@virtualstate/examples

Version:
18 lines 594 B
import { h, createFragment, createToken } from "@virtualstate/fringe"; import { read } from "./read.js"; import { asyncExtendedIterable as a } from "iterable"; async function* Source() { yield "🐦"; yield "❤️"; yield "💪"; yield "🦿"; } const Box = createToken(Symbol("📦")); function Iterable(o, state) { return (h(createFragment, null, a(read(state)) .map(child => (h(Box, null, child))))); } export const _803_IterableVNode = (h(Iterable, null, h(Source, null))); export const _803_URL = import.meta.url; //# sourceMappingURL=iterable-nodes.js.map