React - Calling a function in setState does not update the value

前端 未结 0 1861
天涯浪人
天涯浪人 2021-01-02 11:41

I am trying to call a function in setState, but it does not update the value.

 //{value: 0}
 handleClick(key) {
    const { value } = this.state
    this.setS         


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