React Hooks: State is resetting to empty array even if I use the spread operator, prevState, etc

后端 未结 0 1777
旧时难觅i
旧时难觅i 2021-01-18 23:58

WORDS: In short: My items state is resetting to [] with each NEW checkbox clicked. But instead I want to use the spread operator and useState

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