Direction: Choose the correct option
Q1.
What is the useCallback hook used for?
Direction: Choose the correct option
Q2.
How is useCallback different from useMemo?
Direction: Choose the correct option
Q3.
Why would you use useCallback?
Direction: Choose the correct option
Q4.
What does useCallback return?
Direction: Choose the correct option
Q5.
Which dependency array is correct for useCallback to ensure the callback always uses the latest state?
