← React Beginner Questions - Set 11 Q103

What is the purpose of React’s useEffect hook?

React Beginner Questions - Set 11

Example

useEffect(() => { subscribe(id); return () => unsubscribe(id); }, [id]);

What to notice

← Back to the question list