useState changing also its initial reference value

前端 未结 0 734
甜味超标
甜味超标 2021-01-05 04:42

I\'m trying to use a 2D array as state in my project. But I have the following problem: for some reason when I update the state it also updates the class property, and for s

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