diff --git a/examples/kitchen-sink/src/index.tsx b/examples/kitchen-sink/src/index.tsx index a5aed2a..818fb8f 100644 --- a/examples/kitchen-sink/src/index.tsx +++ b/examples/kitchen-sink/src/index.tsx @@ -83,13 +83,25 @@ export const Todos = component("Todos", (props, { signal, wire, store }) => { style="width: 100%; max-width: 400px;" /> + { + e.preventDefault(); + produce($todos.items, (items) => { + //items.splice(0, 0, json); + items.pop(); + }); + }} + > + remove first(pop) +