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 - 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…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
(Locked)
Use the mockup, make a plan6m 9s
-
(Locked)
Scaffold initial components5m 58s
-
(Locked)
Functional components6m 37s
-
(Locked)
Build the filters form5m 41s
-
(Locked)
Forms in React: Controlled or not2m 53s
-
(Locked)
Wire up the filters form10m 57s
-
(Locked)
Respond to filter form updates5m 33s
-
(Locked)
Animating with ReactTransitionGroup8m 21s
-
(Locked)
Challenge: Better usability and animation3m 11s
-
(Locked)
Solution: Better usability and animation5m
-
(Locked)
-
-