79257037

Date: 2024-12-06 06:34:43
Score: 2
Natty:
Report link

So basically, whenever you change the state of an element in react, and if you have initialised the state to be an empty array and then change the state to be a single value/string , it will give this error. If you want the user to select only one value, then you can initiase the state to be an empty string.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Atharv