Direction: Choose the correct option
Q1.
In a class component, which method is used to update state?
Direction: Choose the correct option
Q2.
What is the behavior of setState?
Direction: Choose the correct option
Q3.
When you call setState with an object, what does React do?
Direction: Choose the correct option
Q4.
Why might you pass a function to setState instead of an object?
Direction: Choose the correct option
Q5.
After calling setState, which lifecycle method is invoked?
