mirror of
https://github.com/kamranahmedse/developer-roadmap.git
synced 2025-08-21 00:21:35 +02:00
add new references to learn component lifecycles (#7319)
* add new references to learn component lifecycles * add new references to learn component lifecycles and update official at top * add new references to learn component lifecycles and place the main link in link section
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
# Component Life Cycle
|
||||
|
||||
React components have a lifecycle consisting of three phases: Mounting, Updating, and Unmounting along with several “lifecycle methods” that you can override to run code at particular times in the process. You can use this [lifecycle diagram](https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/) as a cheat sheet.
|
||||
React components have a lifecycle consisting of three phases: Mounting, Updating, and Unmounting along with several “lifecycle methods” that you can override to run code at particular times in the process.
|
||||
|
||||
It is not recommended to use lifecycle methods manually. Instead, use the useEffect hook with functional components.
|
||||
|
||||
Visit the following resources to learn more:
|
||||
|
||||
- [@official@Lifecycle of Reactive Effects](https://react.dev/learn/lifecycle-of-reactive-effectsv)
|
||||
- [@official@Class Component](https://react.dev/reference/react/Component)
|
||||
- [@official@Lifecycle of Reactive Effects](https://react.dev/learn/lifecycle-of-reactive-effects)
|
||||
- [@article@React component lifecycle: React lifecycle methods & hooks](https://tsh.io/blog/react-component-lifecycle-methods-vs-hooks/)
|
||||
- [@article@The React lifecycle: methods and hooks explained](https://retool.com/blog/the-react-lifecycle-methods-and-hooks-explained#react-hooks-and-the-component-lifecycle)
|
||||
- [@article@React Lifecycle: Methods & Hooks In Detail](https://www.bairesdev.com/blog/react-lifecycle-methods-hooks/)
|
||||
- [@article@lifecycle diagram](https://projects.wojtekmaj.pl/react-lifecycle-methods-diagram/)
|
Reference in New Issue
Block a user