Course contentsShow
React
Lesson 621 of 2,39617. Common useEffect MistakesPro lesson

Ref Values Don't Belong in Dependencies

Refs like those from useRef don't trigger re-renders, so they're stable and shouldn't be in the array.

This lesson is for subscribers

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