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
So, many developers rely on
React Router to build single page apps
0:00
that dynamically load components and
0:01
change what's displayed in the browser
as a user navigates the app.
0:03
So we got started by installing React
Router to our app using the terminal.
0:08
Since our app runs in a web browser,
0:13
the very first React component we
used was the BrowserRouter component.
0:15
We nested our app component inside
BrowserRouter to help keep the UI in sync
0:20
with the URL.
0:24
Then we learned the basics of creating
routes and some of the benefits of
0:26
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