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 Authentication!
You have completed React Authentication!
Preview
Now that we have a way to authenticate and identify users, we can associate data with specific users.
Resources
Treehouse Courses and Workshops
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
let's have the Authenticated
component display the user's info and
0:00
update the Nav component to conditionally
render the navigation links.
0:00
Open up the file Authenticated.js.
0:05
We're going to replace
name with the user's name,
0:10
and username with
the user's actual username.
0:14
To get access to the authUser state,
0:18
we'll import both the useContext hook and
0:22
the UserContext with import {
useContext } from "react" and
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