kuanhsuh
8/7/2017 - 6:04 AM

react setstate async

react setstate async

handleSubmit(){
    this.setState({
      page: 1,
      total: 1
    },() => {
    this.getDetailFromServer()
    })
  }