← React Beginner Questions - Set 12 Q113

What are side effects in React, and how can you manage them?

React Beginner Questions - Set 12

Example

useEffect(() => {
  const id = setInterval(poll, 5000);
  return () => clearInterval(id);
}, []);

What to notice

← Back to the question list