Connect the reducer to the page

Your task In the code box, in Shop, replace const items = []; with useReducer(cartReducer, []), make each Add … button send an add action, and each Remove button a remove action with that line's id. Then press Run my code.

Getting the editor ready