Use matchPath to Match Nested Route Paths in Parent Routes with React-Router

InstructorJason Brown

Share this video with your friends

Send Tweet

In this lesson we'll use the matchPath function exported by react-router to find active nested routes inside of a parent component. This technique can be used for comparing routes outside of a React component, or even inside of life cycle methods to do data loading.

Free Community Resource

A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.