What is the 'useRouteMatch' hook used for in React Router?
The 'useRouteMatch' hook is used to match the current URL against a specific path. It returns a match object that contains information about how the URL matches the path, which can be used for conditional rendering.