import { render } from "preact"; import flowponent from "flowponent"; const App = flowponent(function*() { let count = 0; for (;;) { count += yield step => (
current value: {count}
); } }); render(, document.getElementById("root"));