Problem to setState with array, losing the first position

前端 未结 0 929
难免孤独
难免孤独 2020-12-04 04:25

I have a function that receives an array via props. I need to save this array in the state of component, so my component looks like this:

...
cons         


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