React state not being updated as expected using functional call to setState

前端 未结 0 1761
栀梦
栀梦 2020-12-19 05:24

I have the following method

handlePlayerSaveToggle(playerId) {
    this.setState(state => {
        console.log(JSON.stringify(state));
        state.playe         


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