/// import { Cell, handler, recipe, UI } from "commontools"; type TodoState = { items: Cell; }; type TodoEvent = { add: string; }; const addTodo = handler }>((event, state) => { state.items.push(event.add); }); export default recipe((state) => { return { [UI]: (
    {state.items.map((item) =>
  • {item}
  • )}
), }; });