【发布时间】:2020-05-10 00:44:57
【问题描述】:
如果 React 组件上的生命周期方法标记为 async,它们的处理方式是否不同?
default class MyComponent extends Component {
state = {};
async componentDidMount() {
await this.fillQuestions();
}
}
【问题讨论】:
标签: javascript reactjs