All the cart rules in one place
Your task In the code box, finish cartReducer(state, action). add puts { ...action.product, qty: 1 } at the end, or adds 1 to the qty if the product is there. remove takes out the line with action.id. setQty sets that line's qty to action.qty, and takes the line out when it is below 1. Any other action gives back state. Then press Run my code.
Getting the editor ready
