From the course: React: Authentication

Unlock this course with a free trial

Join today to access over 24,800 courses taught by industry experts.

Creating a verification landing page

Creating a verification landing page - React.js Tutorial

From the course: React: Authentication

Creating a verification landing page

- [Instructor] Alright, so now that we have that verify email route on the server, the last thing we have to do here is hook things up on the front end. So as you can see, I've done most of the work here for you. We have this email verification landing page thing that's set up. And basically what this does is, as you can see here, it pulls the verification string out of the parameters, right? I'll show you that in just a minute here. So it pulls the verification string out of the route parameters, and then it sends that to the server, right, to that route that we just created there. And depending on what happens, right, depending on if there's an error or not, it sets this is loading thing to false and this is success thing to either true or false. And down here in the JSX, you can see that there's really three possibilities that it'll display. The first thing is a loading message showing that it's currently trying to verify the user's verification string. And then if it's successful,…

Contents