react useState only update new values in array

后端 未结 0 1371
刺人心
刺人心 2020-11-30 00:38

Hi I\'m trying to get the height of all the items and save it as an array like this [123,456,789] but it just save as [123],[456],[789] so tried to add heightV in the array.

相关标签:
回答
  • 消灭零回复
提交回复
热议问题