From the course: The Freelance Stack: Real Project with Next.js and Strapi

Unlock this course with a free trial

Join today to access over 25,200 courses taught by industry experts.

Signup form JSX

Signup form JSX

We're going to start with the structure for the sign-up form here. When I say sign-up form, what I mean is basically this whole element here at the top, right? So on the left-hand side, we're going to have the text on the main page that's going to be just a general text of like, oh, you want to stay tuned for our events, this is what we usually offer you, blah, blah, blah. And then on the individual page, it will be whatever we just fed into, whatever we just fed into Strapi right here. So inside here we have the description. That is what we want to usually display on this side here. So the way we're going to do is we're going to make it its own component and then have the parent component pass in the information that is needed. So let's get started with that in order for me to create a new component I will go in here and say I have an events folder and inside that I do have the signup form JSX and that one is just going to be a signup form it will take some props which we're getting…

Contents