Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

React JS Forms - Controlled Inputs - Learn ReactJS

Dave Gray via YouTube

Overview

Google, IBM & Meta Certificates – 40% Off
One Coursera Plus subscription covers most Professional Certificates on Coursera.
Unlock All Certificates
This beginner React lesson builds controlled form and search input components whose values are managed through React state. It also covers submitting items, persisting state with localStorage, filtering search results, and restoring input focus with useRef.

Syllabus

Intro
Set up and clean up
Creating a Form Component
Adding CSS Styles to the form
Sending props to the form component
Making a controlled input component
The handleSubmit function
The addItem function
The setAndSaveItems function - D.R.Y. don't repeat yourself
Adding new items
Loading state from localStorage
Search Functionality
Building the search input component
Props for the search input component
Completing the controlled search input component
Adding search functionality with filter
Review of Controlled Form Input Components
The useRef hook

Taught by

Dave Gray

Reviews

Start your review of React JS Forms - Controlled Inputs - Learn ReactJS

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.