useRef Does Not Re-render
Multiple Choice Medium
Question
What happens when you change `ref.current` to a new value?
Hint
Refs are an escape hatch from React's reactive system.
Explanation
Changing ref.current does not trigger a re-render. This is the key difference between refs and state. Refs are for values that need to persist across renders but shouldn't cause re-renders — like timer IDs or DOM references.
Related Resources
Related Lessons
Look up unfamiliar terms
A beginner-friendly glossary explains jargon in plain English — variables, functions, DOM, Promise, and more.
Decode error messages
Plain-English explanations of common errors — what they mean, why they happen, and how to fix them.
Build real projects
Apply what you learned by building guided projects with starter code and solutions.