Why is React discarding my changes after setState?

前端 未结 0 540
醉话见心
醉话见心 2021-01-30 13:16

I am trying to set the state of my React component but the screen refreshes after the setState method is called and the value is back to default. What is going on?

Here i

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