Join Joe Chellman for an in-depth discussion in this video Wire up the filters form, part of React for Web Designers.
up the filter form fields as controlled elements, … that update some new state variables … tracking their contents. … So as of now, I can type in these and nothing happens. … We're going to change these so they are controlled. … So first, we know we're going to need to track some new state. … We're going to need to track the currently typed in name, … the currently selected title and whether … We'll add a key called current name … which will start out empty. … Likewise the current title, also empty. … And we'll use isIntern to track whether … that checkbox is checked, and that will start as false. … So these are the pieces of state we have … at the Directory level, and we'll pass these … into the filters as props. … We're keeping the state here at the Directory level … because these are all going to influence each other. … Seems like the right place for now. … So we'll pass these all in currentName equals … this.state.currentName, currentTitle is … this.state.currentTitle. … We'll also pass in isIntern this.state.isIntern. …
Author
Released
6/5/2019- Installing React on an existing site
- Thinking about a design in terms of components
- Creating fully-featured function components using Hooks
- Storing and retrieving data from an external RESTful API
- Employing third-party components for CSS animation
- Using conditional rendering
Skill Level Intermediate
Duration
Views
Related Courses
-
Essentials of CSS for React Developers
with Eric Greene53m 31s Beginner -
React.js Essential Training (2018)
with Eve Porcello1h 25m Intermediate
-
Introduction
-
Using the exercise files1m 2s
-
1. Introducing React
-
2. First Project: Customizer
-
Attaching a data source3m 20s
-
Implement props4m 28s
-
Solution3m 4s
-
3. Second Project: Directory Browser
-
Scaffold initial components5m 58s
-
Functional components6m 37s
-
Build the filters form5m 41s
-
Wire up the filters form10m 57s
-
4. Third Project: Status Updater
-
Using conditional rendering4m 36s
-
Let form post to the API3m 25s
-
Conclusion
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.
CancelTake notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.
Share this video
Embed this video
Video: Wire up the filters form