79360991

Date: 2025-01-16 09:33:31
Score: 2.5
Natty:
Report link

I think useState is used here to guarantee that the values are initialized once per component and remain stable across renders. I mean useMemo could work, but it might be recalculated, and it doesn’t really match "immutable state."

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (1):
Posted by: Raphael Fadimu