From the course: React for Web Designers

Unlock this course with a free trial

Join today to access over 22,600 courses taught by industry experts.

Build the filters form

Build the filters form - React.js Tutorial

From the course: React for Web Designers

Build the filters form

- [Narrator] In this video, we're going to build up the form elements for our filters component. We're going to group these together in a single component because there aren't a lot of elements here, just these three, and they're pretty simple. As your forms get larger, you can always consider breaking them up into smaller child components. But for our purposes, I think just one is going to be fine. Just to recap, in our current state, we just have a little message that says filters go here, we're going to replace that with the markup from our mock up. So I'll switch back over to editor, going to open the mockup.html file. I know that we already have the form tag in there, so I'm going to copy everything else that appears inside it. Bring that over to directory.js. I'm going to use command + shift + o, which is go to symbol, I can see all of my little symbols, in this case my functions and classes in this file, I'm going to jump down to filters by clicking it. So I can get rid of my…

Contents