learnshopify.dev/Workspace
js component

The delegated listener is wired for you: inc/dec is detected, and the line's `key` and current `qty` are read. Two lines left. (1) Compute `nextQty`: `qty + 1` when `inc` was clicked, else `qty - 1`. (2) POST `{ id: key, quantity: nextQty }` to `/cart/change.js`, then pass the returned cart to `render`.

0 / 1 task solved
northwind-coffee.com
Live Storefront