Direction: Choose the correct option
Q1.
What does the useState hook return?
Direction: Choose the correct option
Q2.
How do you import useState?
Direction: Choose the correct option
Q3.
What is the initial value passed to useState used for?
Direction: Choose the correct option
Q4.
Which of the following correctly declares a state variable 'count' with setter 'setCount'?
Direction: Choose the correct option
Q5.
If you call the setter function (e.g., setCount) with the same value as current state, what happens?
