arrow_backBACK TO DRILLS
Black Beltuseeffect
useEffect Subscription With a Cleanup Function
A component subscribes to an event inside an Effect and returns a cleanup function. When does React call that cleanup?
A component subscribes to an event inside an Effect and returns a cleanup function. When does React call that cleanup?