Direction: Choose the correct option
Q1.
Which lifecycle method is called when a component is first inserted into the DOM?
Direction: Choose the correct option
Q2.
Which method is invoked after a component updates due to state or props changes?
Direction: Choose the correct option
Q3.
What is the purpose of shouldComponentUpdate?
Direction: Choose the correct option
Q4.
Which method is called right before a component is removed from the DOM?
Direction: Choose the correct option
Q5.
In which lifecycle method should you make API calls in a class component?
