Reactjs – Navbar Component is not re-rendering on state change
I am trying to create a shopping cart. I have created a context and passed the state as a value on pressing increment and decrement button on the cart my items count in the are changing but total number of…