React state is undefined even if on console log is defined

前端 未结 0 1107
后悔当初
后悔当初 2021-01-19 01:11
  • Role:
  • {console.log(this.state.userData.roles)} {this.state.userData.roles.map((role) => { return (
    相关标签:
    回答
    • 消灭零回复
    提交回复
    热议问题