devlog study react lifecycle

React lifecycle 📝


  • mount : when the component is first created and rendered into the DOM
    • component appears on the screen
  • update : when the component re-renders due to state/props changes
    • re-renders with new data
  • unmount : when the component is removed from the DOM(cleanup)
    • component disappears

**