Web Dev Roadmap for Beginners (Free!): https://bit.ly/DaveGrayWebDevRoadmap
React JS Forms utilize controlled inputs linked to React state which is a different approach than we learn with HTML and Javascript. Linking React controlled form inputs to React state create a single source of truth for our controlled components.
🚩 Subscribe ➜ https://bit.ly/3nGHmNn
🚀 This lesson is part of a Learn React tutorial series playlist:
• React Tutorials
🔗 Source Code for this tutorial: https://github.com/gitdagray/react_co...
React JS Forms | Controlled Inputs | Learn ReactJS
(00:00) Intro
(00:05) Set up and clean up
(03:06) Creating a Form Component
(07:44) Adding CSS Styles to the form
(09:24) Sending props to the form component
(11:47) Making a controlled input component
(13:58) The handleSubmit function
(17:52) The addItem function
(21:04) The setAndSaveItems function - D.R.Y. (don't repeat yourself)
(22:15) Adding new items
(23:17) Loading state from localStorage
(24:58) Search Functionality
(25:40) Building the search input component
(27:50) Props for the search input component
(29:03) Completing the controlled search input component
(31:34) Adding search functionality with filter()
(33:58) Review of Controlled Form Input Components
(34:32) The useRef hook
🔗 ES7 React JS Snippets Extension for VS Code:
https://marketplace.visualstudio.com/...
🔗 React Dev Tools Extension for Chrome:
https://chrome.google.com/webstore/de...
🔗 Styled Components: https://styled-components.com/
📚 References:
ReactJS Official site: https://reactjs.org/
React Wikipedia: https://en.wikipedia.org/wiki/React_(...)
React Jobs: https://www.ziprecruiter.com/candidat...
✅ Follow Me:
Twitter: / yesdavidgray
LinkedIn: / davidagray
Blog: https://yesdavidgray.com
Reddit: / daveoneleven
Was this tutorial about Controlled Form Inputs in React JS helpful? If so, please share. Let me know your thoughts in the comments.
#react #controlled #inputs
On this page of the site you can watch the video online React JS Forms | Controlled Inputs | Learn ReactJS with a duration of hours minute second in good quality, which was uploaded by the user Dave Gray 05 July 2021, share the link with friends and acquaintances, this video has already been watched 44,835 times on youtube and it was liked by 1 thousand viewers. Enjoy your viewing!