UNPKG

@virtualstate/examples

Version:
20 lines 752 B
import { h } from "@virtualstate/fringe"; import { Store } from "./store.js"; import { Domain, Cactus, Scroll, TestTube, Thread } from "./domain.js"; import { Instance } from "@virtualstate/fringe"; export * from "./store.js"; export * from "./read.js"; const store = (h(Store, { domain: Domain, final: true, visit: [TestTube] }, h(TestTube, null, h(Thread, { size: 2 }), h(Cactus, { spikes: "spikey" }), h(Cactus, { spikes: "not very spikey" }), h(Scroll, null)))); function* Look(o, state) { yield state; console.log(store[Instance]?.get(TestTube)); } export const _E2001_Store = (h("container", null, h(Look, null, store))); export const _E2001_URL = import.meta.url; //# sourceMappingURL=index.js.map