Skip to main content
Frontend
Interviews
.dev
Problems
710. React ref Mutation and Re-render
Easy
•
...
Select the best answer.
const
clicks
=
React
.
useRef
(
0
)
;
clicks
.
current
+=
1
;
Why UI may not update when ref changes?
Ref is async
Ref is immutable
Ref mutation does not trigger render
Ref only server-side
Submit Answer
Reveal Answer
Select an option and submit your answer.
Next Problem
Auto-advance on correct answer