![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
React
kim先生
这个作者很懒,什么都没留下…
展开
-
React 中的setState
React 中的setState(arg1,arg2)异步操作 arg1可传入两种参数: 一种是对象 this.setState({ isAuthenticated: props.isAuthen }); 一种是函数 this.setState((preState, props) => { return {isAuthenticated: props.isAuthen} }...转载 2019-03-30 14:18:27 · 189 阅读 · 0 评论 -
React生命周期
1、17版之前的生命周期图 2、17版生命周期图原创 2019-03-24 15:48:30 · 171 阅读 · 0 评论