#StackBounty: #reactjs #react-native #web-applications #react-router #progressive-web-apps Controlling Browser Back button in React

Bounty: 50

I want to make my webapp work like a mobile app. This means when a user presses back, they expect pops to close, not entire pages to change.

My end goal is to make it so when a modal opens the Back button will now close the modal and if they click it again it will go back.

I’ve tried several methods and although close they never respond consistently.
https://codesandbox.io/s/github/subwaymatch/react-disable-back-button-example-v2

Anyone with a PROVEN working version of what Im looking for?


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.