DEV Community

loading...

Discussion on: Programmatic Navigation in React using react-router

Collapse
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

Collapse
rusikf profile image
Ruslan Korolev

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