setState callback not waiting state to update

后端 未结 0 1739
一向
一向 2020-12-11 09:43

I have this piece of code:

    handleMaxLevel = event => {
    this.setState({
      maxLevel: event.target.value
    }, (minLevel, maxLevel) => {
              


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