React知识总结[1] -- 类组件生命周期
constructor(props)
initializing local state by assigning an object to this.state. Should not call setState() in the constructor(). Should assign this.state directly in constructor. In all other methods, need to use this.setState().
binding event handler.
原创
2021-11-17 15:15:22 ·
207 阅读 ·
0 评论