@virtualstate/examples
Version:
19 lines • 645 B
JavaScript
import { ChildrenSource, EnableThen, h, createFragment } from "@virtualstate/fringe";
async function* Inner() {
yield (h(createFragment, null,
h("z", null,
h("a", null)),
h("z", null,
h("b", null)),
h("z", null,
h("c", null))));
}
const node = (h("p", { ...{ [EnableThen]: true } },
h(Inner, null)));
async function Example() {
const result = await node;
return result.map(node => node.children[ChildrenSource]);
}
export const _305_AsPromiseWithGenerator = h(Example, null);
export const _305_URL = import.meta.url;
//# sourceMappingURL=as-promise-options-inner.js.map