How to access useState in a page from a component in NextJs? – Javascript
I'm trying to create a modal which will be displayed in my index.js page. I do this by using useState to set its display state to true or false. However I want to access this useState from my BottomNavbar component…