79213133

Date: 2024-11-21 22:54:44
Score: 2
Natty:
Report link

an assignment statement returns the value that was assigned And the ref function shouldn't return anything:

<div ref={(el) => {refs.current[i] = el}}>test</div>
Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: Silas Kierstein