arrow_backBACK TO DRILLS
White BeltuserefPREMIUM
regular variables reset across renders
A developer needs to store a setInterval ID between renders so it can later be cleared. Why is useRef more appropriate than a normal local variable?
A developer needs to store a setInterval ID between renders so it can later be cleared. Why is useRef more appropriate than a normal local variable?