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
Implementing the Sign up form. The signup form sends a post request to the API to create a new user.
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
This component renders the signup form,
which stores the name,
0:00
username, and
password the user enters as references.
0:05
Once the user submits the signup form,
0:09
we'll need to send the user's credentials
to the server to create a new user.
0:12
We'll do this by using the fetch method.
0:18
To handle the promise
the fetch method returns,
0:21
we'll be using the async / await syntax.
0:25
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