Active Links

Whenever we want to check if a Link is active, we can use react router’s useRouteMatch this time, instead of destructuring stuff from it, we pass it in an object and get a boolean.


Copyright 2023 © Borja Leiva

Made within London