React Classes To Hooks: Everything about useState + useEffect

preview_player
Показать описание

In this video we cover:
0:00 What are the difference between a class based component and functional based component & what a class based component looks like
0:57 Replacing a class component structure with a functional one
5:00 How do lifecycle methods in class based components work
6:12 How does useEffect work
7:20 How to replace lifecycle methods like componentDidMount, componentDidUpdate, and componentWillUnmount with useEffect
12:30 Why React Hooks vs Class Components are better (specifically why componentDidUpdate is can be done BETTER by useEffect)

Follow me on Social Media:
Рекомендации по теме
Комментарии
Автор

Oh my God! I'm learning ReactJS from a Udemy Course, it was somewhat good so far, but everything messed up when he introduced useState and stuffs. Even the official doc doesn't have a proper beginner-friendly explanation for this. I didn't imagine I would stumble upon such a wonderful explanation. Thank you so much, man. You deserve more recognition.
Can't wait to explore other videos of your channel. Keep it up :D

arindam
Автор

Great job man! We have been switching a lot of our code over to using hooks instead of classes at my job and I've been looking for someone to provide a nice quick and clean explanation. Glad I discovered your channel!

TheBibbster
Автор

Thanks Man, finally a clear explanation of how hooks resemble classes!

ethanjohnsrud
Автор

You really deserve much more subscribers! I've been watching many hours of your react videos, like material UI. You might go fast and I cannot explain why but you make all cristal clear! Wish you made some full courses with real projects, your react for beginners is really great, I will recommand your channel anyway. Big thanks from France!

MyK
Автор

Dude, love the work. You are killing me with the big right panel logo app and the tiny code example sub-screen on the left though.

VincentFulco
Автор

Thanks! You made it much clearer than other yt videos

PoltergeistWZ
Автор

Finally I found it. Extremely clear and very good explanation. Thank you very much!

pelinkayhan
Автор

You did an excellent job explaining Hooks!

willCrazy
Автор

Great video man, you explained hooks in a clear and concise way, you just got a new subscriber :)

FallingDreamFlowingSand
Автор

Best explanation of the useEffect hook. 👍

borasumer
Автор

Thank you Anthony! Great tutorials about React.

beatrizalmeidapires
Автор

great videos man,
but how can we listen to the back button event and prevent it from happening

rishi
Автор

Great explanation! It would be good of you have increased the text size:)

saitejaballa
Автор

Very clean explanation
Although I barely can see the code try cmd+(+) on vsCode next time
Thank you .
+sub

xPanda
Автор

With Typescript, using class components, I can create Interfaces to props and states, with functions it is easy to use them with props, but what about states? How do I say the state should be type of an Interface?

DanielRios
Автор

12:52 Is the 3rd useEffect did unmount or will unmount?

MGopinath
Автор

Do I need to learn class based components before hooks?

frank
Автор

My neck hurt from watching you on the little screen lol, you need to set up better so you be more comfortable, I can tell that the microphone is in the way, maybe just move the computer screen a bit to your right so you can see it better 🌸

Also, great explanation, thank you ❤

Could you do stuff on react native and flutter, please? and maybe using material UI with react native.

rawan
Автор

Please make a tutorial on Nextjs if you can. Thank You.

surij
Автор

Bro, next time u record a video i would suggest, not to devide the screen, for me in little screen its hard to read the code. Cheers!

bekesharcos