79781174

Date: 2025-10-02 17:46:44
Score: 1.5
Natty:
Report link

useState hides the value behind a setter because React must track updates and re-render. useRef just gives you a persistent object with .current, since React doesn’t track it and changes don’t trigger renders. They look different on purpose — to make it clear that state is reactive, refs are not.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: DIPAK HALKUDE