React Hooks state update applies only once when called from callbacks in an array of components

后端 未结 0 1285
余生分开走
余生分开走 2021-02-04 19:13


I\'m having trouble to lift the state up in that case:
I have a button which on each click adds element to \'mylist\' through \'setMyList\'. These elements are \'Ch

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