approaches for short circuiting render() based on state property availability?

后端 未结 0 586
礼貌的吻别
礼貌的吻别 2021-01-01 04:33

As a best practice, all data needed by a component should be retrieved in the componentDidMount() event. This data should be set into state via this.setState() in component

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