/// import { type Cell, Default, handler, recipe, UI } from "commontools"; interface CounterState { count: Default; } const increment = handler }>( (_, { count }) => { count.set(count.get() + 1); }, ); export default recipe("Counter with Default", (state) => { return { [UI]: ( Count: {state.count} Increment ), count: state.count, }; });