Course contentsShow
React
Lesson 373 of 2,39611. useState Patterns and PitfallsPro lesson

Functional Updates in useEffect

Why setCount(c => c + 1) in effects removes the need to include count in the dependency array.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.