React Native: this.setState is not a function

前端 未结 5 1987
礼貌的吻别
礼貌的吻别 2020-12-29 22:01

I see a number of questions on here relating to this same issue, but it seems none match the issue I\'m having, and are a bit more complex.

I am in the process of le

5条回答
  •  佛祖请我去吃肉
    2020-12-29 22:35

    this.setState is not a function--- Solved using this

     let that = this;
    
     that.setState({membersArray:response.data})
    

提交回复
热议问题