I have a route named PROFILE where a user is presented with a form.
what I want to do is show a custom modal when user click on the browser back button if the form is dirty, otherwise the browser back button should have the default behaviour.
Is that possible?
react-router-dom
- 4.2.2
react
- 16.0.0
Any help is Appreciated