A

Admin • 833K Points
Coach

Q. What does the useEffect hook return?

  • (A) Nothing
  • (B) A function for rendering
  • (C) A cleanup function
  • (D) A state value
  • Correct Answer - Option(C)
  • Views: 27
  • Filed under category React JS
  • Hashtags:

Explanation by: Admin

useEffect can return a cleanup function that runs when the component unmounts or before the effect re-runs.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.