Reactjs – Updating count in dictionary inside array in useState
In nextJs I created a provider for useState, now I am able to add items to the cart, but that's all that I can do... cart = [{product: "product name", count:1}] When I want to add an item to this…