Kizspy | Question: 27
(Choose 1 answer)
How can you safely remove an unnecessary dependency from an Effect?
A. Remove all dependencies from the array.
B. Use an empty dependency array to ensure the Effect only runs once.
C. Keep all dependencies and accept performance issues.
D. Replace useEffect with useLayoutEffect.