How to toggle the value inside setState?

后端 未结 0 1399
刺人心
刺人心 2020-12-11 01:22

Here i am trying to toggle boolean value completed. It is changing in setState but in render it is still the old state.

t.completed = !t.com

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