While reviewing React hooks effects, each render adds another event listener. Which action fixes it, and which check proves it worked?
Answer options
- A. Extract the logic into a custom hook
- B. Return a listener cleanup function
- C. Verify only one listener remains
- D. Send the request from the click handler