React tutorial in Hindi #28 Hooks in ReactJs

preview_player
Показать описание
In this react js tutorial for beginners series we learn the what are the hooks in react js component. This video is made by anil Sidhu in the Hindi Language.
With Hook, we can use class component features in functional components such as state,life cycle, pure component, etc

Playlist for complete React series in Hindi

Hooks in React Js
What are hooks in ReactJs
How to use them
Example of React Hooks with useState
Interview Question.
Рекомендации по теме
Комментарии
Автор

Sir thank you so much mai kbse udemy pe stuck ti or mjhe kuch b samjh ni ara tha hooks me apne kitne ache se bta dia you are great 😭😭😭😭🙏🙏🙏🙏🙏

anshulshrivastav
Автор

sir aap bot acha pdhate ho. maine 2-3 jagah or try kiya react sikhne ki lekin apka content sbse best lga. thanku so much sir

gurpreetkumar
Автор

Thank you so bro i literally wasted my 3 hours on various channels to understand this topic but i understand this only in five minutes on ur channel bcoz of ur great explaining method 👌

fearlesspubg
Автор

ghoool k pila dety hn shandar parhaty hn...stay blessed

RyankiEdits
Автор

chati thok ke bata sakta hu biginner ko isse acha aur kahi nahi milega . thank you so much sir bahut easy language mai padate ho aap 😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀😀

mayurchaudhari
Автор

Really appreciated your efforts you have put designing each videos session.

somnath.sonawne
Автор

such a great 👍 playlist
thankyou so much

ruchiyadav
Автор

we cannot use useState or any other use____ because it is a feature for functional component. It will throw error "React Hook \"useState\" cannot be called in a class component. React Hooks must be called in a React function component or a custom React Hook function."". If we want to use state in class then we can declare it under constructor.

ABHI
Автор

i am watching this serise to second time and i am learning well a lot of thanks

real_amityadav
Автор

hooks koi bohut bara "haua" nehi hainHooks ka kar diye bhaiya ji ne

habaskepujari
Автор

really a big fan of your teaching style thanks a lot

Hope_for_life
Автор

i saw more video but i understand uyour concept, Thank you Sir ❤

prasadonride
Автор

Sir I request you please, make a courses on django, python, flask and ORM in depth.

KissIndiaNature
Автор

thank you so much sir for your wonderful video

m.debapriyasubudhi
Автор

no we can not use hooks in class component,
lekin hum class or function ko mix krke istmal kr skte hai..

ankitupadhyay
Автор

Ji haan, aap React me class components mein bhi hooks ka istemal kar sakte hain, lekin iske liye aapko ek shart hai. Hooks, jaise ki useState, useEffect, useContext, etc., sirf functional components mein hi seedhe istemal ke liye bane hain. Lekin agar aap class component mein hooks ka istemal karna chahte hain, to aap useEffect ke liye componentDidMount, componentDidUpdate, aur componentWillUnmount ka istemal kar sakte hain.

shoaibsaifi
Автор

No, hooks cannot be used in class components in React. Hooks are a feature introduced in React 16.8 that allow you to use state and other React features in functional components. They are not compatible with class components.

akashnigam
Автор

Hello Anil i saw your react tutorial in class 28 you explain well but why you explain use of class based components currently functional based more use in react
Can u tell me why

Shivamashish
Автор

hi, i have a question, why render() method is not in the function component ...?

shreylatthe
Автор

we can't use hook in class components beacuse
you can definitely mix classes and function components with Hooks in a single tree. Whether a component is a class or a function that uses Hooks is an implementation detail of that component.

jawadullah