The useParams hook was introduced in React Router v5 to simplify accessing URL parameters in functional components.