DEV Community

Discussion on: Programmatic Navigation in React using react-router

projectescape profile image
Aniket Author

Glad you liked it. But you sure the last way is not working? I'm positive it was working when I wrote this post, I also linked my repo which has the code I wrote back then. I have used Router instead of BrowserRouter, as BrowserRouter comes with its own history

rusikf profile image
Ruslan Korolev

Amazing, it works when I tried to use Router! Thanks a lot !!