Today I learned

Hooks in React Router

Edit this Post

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: https://css-tricks.com/the-hooks-of-react-router/


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

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