Direction: Choose the correct option
Q1.
What is the purpose of the useMemo hook?
Direction: Choose the correct option
Q2.
What does useMemo return?
Direction: Choose the correct option
Q3.
When should you use useMemo?
Direction: Choose the correct option
Q4.
What happens if the dependencies array is empty?
Direction: Choose the correct option
Q5.
Given const computed = useMemo(() => expensive(a, b), [a, b]); When does expensive re-run?
