React Hooks useState Tutorial

preview_player
Показать описание
Beginner React Hooks tutorial on useState.

Links from video:

----

----

----

----
Follow Me Online Here:

#benawad

----
#benawad
Рекомендации по теме
Комментарии
Автор

Thank you for sharing this! takes me 1 hour to understand the custom form hook, how you pass the initial empty object into the final return and what is synthetic event, now seems easy. Totally for this 15 minutes tutorial I spent 4 hours, including a better understanding for the destructuring, spread and ..rest.

channel
Автор

You deserve more subscribers, Ben! You teach really well. Learnt a few things despite initially thinking this was just for beginners Hooks intro!

KolHaNDLuKex
Автор

The useState hook returns two things in an array the state variable and a setter. The setter takes the old value for you to update it

6:50 if using object as state in useState you need to use the spread operator to get the rest of the object properties, if you just return the property you want to update then you’ll erase the other properties the object has

mostinho
Автор

You are typing so fast 🤩🥳🥳 and teaching so well. I want to be react developer like you🤩

sathishkumarr
Автор

I feel so upgraded after watching this tutorial. Thank you!

Justin_Min_
Автор

I feel like this is peak React/JavaScript. It's so intuitive and clean

zaretix
Автор

i should have totally given this a watch ages ago. thanks Ben your the best!

bantinggamer
Автор

I like the way you teach and talk about the stuff that I expect but is not usually used (like the array definition instead of array destructuring). This helps me connect much more effectively to the content and frees up my mind from having any questions hanging in my mind until the end of the video.

imanmohamadi
Автор

Wow Ben, seen a couple of tutorials on React fairly recently but never seen not one use React the way you had in this video. I was really impressed. Just started React 4 days ago and I have lots to learn. I saved your video, this is a really good video to refer too, thanks for creating it.

DevlogBill
Автор

Much more information in this 15 mins of video than any other useState tutorials in Youtube

TubeSwarn
Автор

Please continue this series really enjoy learning from you.

SomeGamerDudeGuy
Автор

Man, you're so fast when explaining, I have to pause the video and then think lol. Anyway great content, thanks!

armanrozika
Автор

Is there anyone who's like if I see this - "do you wanna be a software engineer..." thing one more time, I'll crack my screen?
PS: Gr8 vdo ben as always

stoic
Автор

so glad I found your channel! amazing tutorials! Subscribed !

agdmnm
Автор

Thanks Ben. These series really helps me a lot of time understanding react mind 👍👍👍

pianoby
Автор

I like your videos and the way you explain the things, I would like you to create a video explaining how to get the updated state values just after setting them, as callback is not allowed in useState hook.

harshwardhanjethania
Автор

Hi Ben,
you're such a lifesaver man you explain well how to change the state immediately

setFindDeals(currentState => ({ SubCategoryID: currentState.SubCategoryID = option.key }))


Thanks Man....!

mfaraz
Автор

About the lint errors at the beginning of the video, is an internal configuration that came when you create a react app with the create-react-app module. It also includes lint errors for useEffect hooks

abrahamgarcia
Автор

Thanks alot Dude! Was searching for this .. very nice spoken - explained! Please do more!

Meskarts
Автор

Best tutorial I've watched in a long time. I'm gonna guess you're a professional teacher irl haha

meganadams