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.
useRouteMatch
Copyright 2023 © Borja Leiva
Made with♥in London