Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed React Router v6 Basics!
You have completed React Router v6 Basics!
Preview
Let’s go over the key concepts you learned in this stage.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
component in our main navigation bar.
0:00
We then swap the Link tags for
0:01
the NavLink component which automatically
adds the active class to the link.
0:03
Remember, you can customize the class
name and style by providing NavLink,
0:09
the class name, and style prop.
0:13
Then we focused on getting the sub
navigation to display a list of courses
0:16
when a user clicks a course link.
0:20
We started by creating descendant
routes to render the list of courses in
0:23
the Courses component.
0:27
While creating these routes,
we learned that we can pass relative paths
0:29
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up