
React Component Lifecycle - Hooks / Methods Explained
video description
Date: 2022-03-14
Related videos
Comments and reviews: 8
devmentorlive
I guess you are using classes due to the age of this video? I haven't used an es6 class in almost a year now. Classes just add a lot of special syntax and complexity that you don't need. Functions are first class in JavaScript and closure and hooks are peanut butter and jelly!
reply
I guess you are using classes due to the age of this video? I haven't used an es6 class in almost a year now. Classes just add a lot of special syntax and complexity that you don't need. Functions are first class in JavaScript and closure and hooks are peanut butter and jelly!
reply
Berke
Shouldn't you have used the prevState parameter while incrementing the state.count value? this way you are editing the state directly its not the best practice, also in Docs using prevState parameter is the best practice
reply
Shouldn't you have used the prevState parameter while incrementing the state.count value? this way you are editing the state directly its not the best practice, also in Docs using prevState parameter is the best practice
reply
somasundaram
Hi,
I have a doubt on ShouldComponentUpdate method implementation. That is, if present value and future value are different , then it should re-render.right?
But,here it is not re-render
Can any guide me
reply
Hi,
I have a doubt on ShouldComponentUpdate method implementation. That is, if present value and future value are different , then it should re-render.right?
But,here it is not re-render
Can any guide me
reply
Harun
I come from The Odin Project and find this video useful! Especially for beginners.
By the way how is your Odin Project adventure going? You guys must come very close to end of Javascript course. I
reply
I come from The Odin Project and find this video useful! Especially for beginners.
By the way how is your Odin Project adventure going? You guys must come very close to end of Javascript course. I
reply
Oskar
So cool, please help me with this. why do you use the methods without using the -.bind(this)- into the constructor? what's the difference between doing in that way from the other way?????
reply
So cool, please help me with this. why do you use the methods without using the -.bind(this)- into the constructor? what's the difference between doing in that way from the other way?????
reply
Anand
if getDerivedStateFromProps is used for setting the state from props why can't it be done in constructor? We have access to props in constructor as well.
reply
if getDerivedStateFromProps is used for setting the state from props why can't it be done in constructor? We have access to props in constructor as well.
reply
Leonz
thanks for the awesome video.
I use create-react-app to run the code ,wondering why componentDidCatch won't show parent component but showing error
reply
thanks for the awesome video.
I use create-react-app to run the code ,wondering why componentDidCatch won't show parent component but showing error
reply
Gigatless
It's great to see someone who actually used a thing so they can explain the things you would actually need in real world.
reply
It's great to see someone who actually used a thing so they can explain the things you would actually need in real world.
reply
Add a review, comment















