35 ms·
useRef is quite useful when you want to use something externally that has it own lifecycle. And your only interaction is sporadic. Think animation.
by skydhash 1y ago
useRef is quite useful when you want to use something externally that has it own lifecycle. And your only interaction is sporadic. Think animation.