/// import { Cell, recipe, UI } from "commontools"; interface State { counter: Cell; } export default recipe("Counter", (state) => { return { [UI]: ( state.counter.set(state.counter.get() + 1)}> Increment ), }; });