How to use setState from .then in another function as a parameter in ReactJS

前端 未结 0 945
野的像风
野的像风 2020-12-21 18:46

I am new to ReactJS. I have:

this.service
        .getData({})
        .then((response: any) => {
            this.setState({
                id: response.         


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