React tutorial for beginners #12 State with class component

preview_player
Показать описание
in this react js tutorial for beginners series we learn how to use state in a class component in react js. This video is made by anil Sidhu in the Hindi Language.
State in Class Component
Make Class Component
What is state
Define state
Update state with a Button click
Interview Question
Рекомендации по теме
Комментарии
Автор

Thank you very much sir,
Awesome Video 🌟🌟🌟🌟🌟

vishwanath
Автор

Thanks a lot Anil, This clarified so many of my confusions about classes and states.

rezaasadi
Автор

We cannot use useState in class component because it belongs to hooks (we say lifecycle method of functional component only).

shubhampatidar
Автор

Very NIce video! Keep growing, thanks!

Teteu.freitas
Автор

No, we can't use useState hook in a class component...

mahmoodtashaf
Автор

you will understand videos .But you must try to code it. Then you can understand what has happened .

WeirdStuffaaaa
Автор

I think state is private to that component only. It is not public sir 🤔

girrajkushwahin