React Hooks: useState

Published: 19 September 2022
on channel: Sam Meech-Ward
4,901
180

Learn how to use useState in a react app to:

Keep track of state for a single component
Update state with values and updater functions
Share state between multiple components
Keep track of state for form inputs and share that with a parent component

https://www.sammeechward.com/usestate

🔗Starter Code:
https://github.com/Sam-Meech-Ward/rea...

🔗Final Code:
https://github.com/Sam-Meech-Ward/rea...


This is video #6 in my react series:

#5 Event Listeners in React:    • This Is How You Handle Events In A Re...  
#7 Arrays in state:    • React State Array of Objects  


Join this channel to support these videos and get access to perks:
   / @sammeechward  

Chapters:
0:00​ Intro
0:59 The Wrong Way
2:59 Introducing useState
4:01 useState Explained
6:50 useState is async
8:35 Setter Functions
9:34 Updated Variable
10:04 Multiple State Variables
12:18 Sharing State between Components
16:03 State and Forms
20:25 Summary

🔗Moar Links
My Website: https://www.sammeechward.com
Instagram:   / meech_ward  
Twitter:   / meech_ward  
Github: https://github.com/orgs/Sam-Meech-Ward


Watch video React Hooks: useState online without registration, duration hours minute second in high quality. This video was added by user Sam Meech-Ward 19 September 2022, don't forget to share it with your friends and acquaintances, it has been viewed on our site 4,901 once and liked it 180 people.