- The constructor is used to set a template or a class for future iterations of the same class or using the state attribute to store and use data. This is read during the mounting phase.
- render is used to display visual data to the dom. It is initially read during the mounting phase or at page load but it also is read whenever there is an update or change during the updating phase.
- This is the starting data. Most fetch calls will be made within this function and it is read at page load during the mounting phase.
- render is read to change anything related to the dom in the case that a change is made during the updating phase.
- This function is called immediately upon an update on the dom. It is not fired during page load it is used during the updating phase.
- This function is invoked whenever a component is removed from the DOM. This function exclusively exists in the unmounting phase.