Statement
Write the reducer cartReducer(state, action) for useReducer. Actions: add (sku, price: add 1 to the quantity or create the line), remove (sku: drop the line), setQty (sku, qty: if qty ≤ 0 drop the line). Never mutate the state you receive: return a new one. An unknown action returns the same state.