Direction: Choose the correct option
Q1.
What does the dependency array in useEffect control?
Direction: Choose the correct option
Q2.
If you omit the dependency array, how often does the effect run?
Direction: Choose the correct option
Q3.
What happens if you pass an empty array []?
Direction: Choose the correct option
Q4.
Which values should be included in the dependency array?
Direction: Choose the correct option
Q5.
What is a common mistake when using dependencies?
