DEV Community

Discussion on: How to make routable modals in react with react-router

Collapse
 
unorthodev profile image
Mayowa Ojo

Hi, thanks for your comment. I assume you mean you want to be able to navigate throughout the application while also having routable modals. With this setup, you can. The modal doesn't affect your normal navigation flow. That's why the modal is only rendered when there's a background state. Also you can have a modal wrapper component and render different components inside the wrapper if you want multiple modals.