How to pass states between two components react? – Reactjs
I need the Cart component in Navbar.js to open whenever i click on the "Add To Cart" button in the CartButton component which is found in multiple pages. here is the code and what i tried so far but it…