React Functional Component LifeCycle
Manikandan Balasubramanian
Full Stack Developer ( React & Typescript | Angular | Vue JS | Node JS | Mongo DB | React Native | Python ) - Software Engineer III at Zuper | FMS | SaaS
The React component lifecycle refers to the series of phases that a React component goes through, from its creation and rendering to updates and eventual removal from the DOM. While the traditional lifecycle methods are associated with class components, the introduction of hooks has provided a more versatile way to manage component behaviour in functional components.
There are 3 phases in the React Component LifeCycle
Mounting Phase :
领英推荐
Updating Phase :
Unmounting Phase:
Best Practices and Conclusion:
Frontend developer | React | Next | UI/UX
9 个月nice article.! just simply clears the variants of both .!
Senior Software Engineer @ EY | 6x Microsoft Certified | M365 Community Contributor ?? | AI & Gen AI Enthusiast
1 年Nice bro, I would like to add the below point. UseEffect is basically to manage side effects in functional components. Main thing: If we didn't pass any dependency to the array it'll run on every render so if we really want to run the effect when a value change or variable change we can pass that value / variable in the dependency array!