Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 366 Bytes

NOTES.md

File metadata and controls

17 lines (14 loc) · 366 Bytes

PHASES:

1. Mounting

-> called when component is loaded

componentDidMount():

-> Called as soon as the component is mounted and ready -> after render -> just once -> best place to initiate API calls

componentDidUpdate():

-> invoked as soon as update happens -> updates DOM

componentDidUnmount():

-> just before the component is closed -> cleanup