Today I learned

Hooks in React Router

Edit this Post Opens in new tab

React-Router introduced new hooks with its release of version 5: useHistory, useLocation, useParams and useRouteMatch.

In my opinion, these new hooks make working with react-router even more convient and maintainable, so if you have not updated to using them yet, give it a try!

Learn more:

I hope you enjoyed this post and learned something new. If you have any questions, feel free to reach out to me on Twitter Opens in new tab or via Email Opens in new tab.

If you want to support me, you can buy me a coffee. I would be very happy about it!

☕️ Buy me a coffee ☕️

I wish you a wonderful day! Marco