Kizspy | Question: 27 (Choose 1 answer)
How can you perform initialization and cleanup actions using the useEffect Hook?
A. By returning a cleanup function from the useEffect callback.
B. By passing an empty dependency array as the second parameter useEffect.
C. By wrapping the useEffect callback in a try-catch block.
D. By using the useCleanupEffect Hook instead of useEffect.