useState Vs setState || React Hooks || functional Vs class component || ReactJS

preview_player
Показать описание
Understanding react state being replaced with useState.

Code Links:-
useState:

setState:
Рекомендации по теме
Комментарии
Автор

Nicely explained ! Thank you and keep uploading. :)

rutujagaikwad
Автор

Finally my confusion cleared about setState and useState thank you sir

RanaAli-hwsz
Автор

It is clear the difference in the implementation thanks!, however I have a question, in which cases do you use class components and in which cases do you use functional componentes with useState?

Dagibu