Reactjs – How to alert a user before they hit the browser's back arrow in NextJS?
In my NextJs app I have a page in which I render a modal that is open when a query parameter is set and closes when that query parameter is not present. Since in the modal there will be a…