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
In this video, we'll use React Router's Link component to navigate between our routes.
VS Code Shortcuts Used
-
Multiple Selections - VS Code
- Mac:
Cmd+Shift+L - Windows:
Ctrl+Shift+L - Linux:
Ctrl+Shift+L
- Mac:
Resources
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
because they're just placeholder links.
0:00
Well, with React router,
0:02
you don't use regular anchor tags
to link to routes in your app.
0:04
Instead, it provides
an intelligent solution for
0:09
navigating between routes with Link.
0:12
The Link component is one of React
Router's core routing components.
0:16
To begin using Link, we need to import it.
0:21
So at the top of Header.js,
let's import Link from react-router-dom.
0:24
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