Direction: Choose the correct option
Q1.
What is the useEffect hook used for?
Direction: Choose the correct option
Q2.
By default, when does the effect function in useEffect run?
Direction: Choose the correct option
Q3.
How do you make useEffect run only once (on mount)?
Direction: Choose the correct option
Q4.
What is the purpose of the cleanup function in useEffect?
Direction: Choose the correct option
Q5.
Which of the following is a correct way to use useEffect for fetching data?
