Creating a custom UserConfirmation modal with the React Router Prompt

added by JavaScript Kicks
9/18/2019 12:00:00 AM

3738 Views

This is a short walkthrough on how to use React-Router's v5 Prompt component to replace the built in user confirmation window object with your own custom UserConfirmation modal. There is another really good article about blocking the navigation to prevent the default modal so that we can render our own custom component instead.


0 comments