79361081

Date: 2025-01-16 10:05:45
Score: 0.5
Natty:
Report link

Do not pass ref.current but ref itself. If you set a property on an object , any other code may see that property right away as long as it has access to the object. The object is ref, in this case. That way you may access up-to-date DOM element whenever you need it. That is what useRef is for.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: dlguswo333