Reactjs – useMatch for multilpe patterns to test on in react-router-dom
I have the following array: const tabsList = [ { pathPattern: 'users/' label: 'Manage users' }, { pathPattern: 'users/:id', label: 'Edit user profile' } ] I need a method from react-router-dom to tell me which of the above array entries…