useState hook keep returning initailState after setState

前端 未结 0 872
后悔当初
后悔当初 2020-12-16 12:52

I have a problem, I have an empty array as an initial value of a const. I want to concat booleons to it after some condition occur (cardImgIndex === imgIndex). The problem i

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