VehiclesFashionRecipesBlogsHuntTravelsSportFunHandmadeITEducation
Mini-Games
x

x
zakruti.com » IT - Software » freeCodeCamp.org
React Component Lifecycle - Hooks / Methods Explained

React Component Lifecycle - Hooks / Methods Explained

FBTwitterReddit

video description

Rating: 4.0; Vote: 1
React components have several lifecycle methods that you can override to run your code at a particular time in the process. In this video, we will explore all the React Component Lifecycle methods. Tutorial from Nick Karnik. Check out his YouTube channel: https://www.youtube.com/channel/UClCm-WAOgN6XLwCpefSVezg Nick on
Date: 2022-03-14

Comments and reviews: 8


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

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

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

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

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

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

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

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






Other channel videos