Hacker News new | ask | show | jobs
by skydhash 319 days 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.