From the course: React: Creating and Hosting a Full-Stack Site

Schalten Sie den kompletten Kurs noch heute frei

Join today to access over 23,400 courses taught by industry experts.

Build a login form

Build a login form

"

- [Instructor] Okay, now that we set up some of the basic groundwork for our login page, create account page, and custom hooks, the next thing that we're going to do is actually start implementing the login page. So let's open up the login page component, and that's going to be in pages, LoginPage.js. And implementing this page is going to be pretty straightforward. All we're going to have to do is add two basic inputs and obviously we'll need state variables to track those, and we're also going to have a button that will call the appropriate Firebase Auth method, and that's something that we'll see very shortly, so don't worry if you don't know what that method is. Cool, so, first things first, what we're going to need to do is add some state variables to our login page, so that we can keep track of the values in our inputs, very similar to what we did earlier with the add comment forms. So…

Inhalt