EasyEnv
Engineering/Courses/Catalog/React/Forms and Controlled Inputs
React
IntermediateLesson 7 of 1735 min · hands-on

Forms and Controlled Inputs

Part of the React course

Type a letter into a plain HTML <input> and the browser just handles it: the DOM element quietly keeps track of what you typed, and nobody else needs to be told. That is fine until your app needs to know what is in the box right now, to validate it, disable a button until it looks right, or send it somewhere on submit.

This lesson's folder holds a small Vite project whose main.jsx shows the lesson's component in the browser. Install its packages and start the dev server ...

Want to learn React Forms and Controlled Inputs in a real environment?

Click below, get a fresh Linux box with React ready to go, and work through Forms and Controlled Inputs hands-on with an AI tutor that knows your code.

Start this lessonForms and Controlled Inputs

What you'll learn

  • Controlled input pattern
  • Value and onChange together
  • Multi-field form state
  • OnSubmit and preventDefault
  • Gathering form data

Read this lesson in your language

All lessons in this course

17 lessons
  1. 1What is React?25 min
  2. 2JSX and Components30 min
  3. 3Props30 min
  4. 4State with useState35 min
  5. 5Handling Events30 min
  6. 6Conditional Rendering and Lists30 min
  7. 7Forms and Controlled Inputs35 min
  8. 8Effects with useEffect40 min
  9. 9Data Fetching40 min
  10. 10Component Composition35 min
  11. 11Context and useContext35 min
  12. 12useReducer35 min
  13. 13Custom Hooks35 min
  14. 14Performance and Memoization35 min
  15. 15Routing with React Router40 min
  16. 16Testing React Components40 min
  17. 17Capstone: Todo App60 min

Explore other courses

Forms and Controlled Inputs - React (English) | Engineering Courses