app.js, to show that it's being invoked outside of the <Routes/> element, so it appears on top of all other components/pages/routes. appNav component itself, I'm applying, conditionally, an overlay which, when active, encompasses the entire width and height of the container.onClick()' which triggers the state change in 'isMenuOpen', as a secondary way to close the menu, by clicking the overlay background essentially.onClick() toggling, but somehow also allow the user to scroll (but not interact with) the content underneath the appNav's overlay element.pointer-events' CSS property of the overlay. Ultimately this approach won't work though, since I'm still trying to both have and not have pointer events on the same element simultaneously. I can only ever have scrolling without clickability or vice versa.