Medium-EasyUnderstandReactMultiple Choice
What happens when you return a function from useEffect?
Understand — Tests comprehension and ability to explain concepts.
Answer Options
AIt runs immediately after the effect
BIt runs before the next effect execution and on unmount
CIt cancels the effect
DIt has no effect
Want to see the correct answer?
Get the answer with a detailed explanation, plus practice 32+ more React questions with adaptive quizzes and timed interviews.
See the Answer on Guru Sishya →This question is from the React topic (Frontend).