Course contentsShow
React
Lesson 710 of 2,39619. useRefPro lesson

When NOT to Use useRef for Values

If changing a value should trigger a re-render or affect what's displayed, use useState instead—refs are invisible to React.

This lesson is for subscribers

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