React 允许用户通过Class或者function定义组件,每个组件必须需要定义的方法是render每个组件都有自己的一个生命周期 Mounting 首次创建 constructor()static getDerivedStateFromProps()render()componentDidMount() 依次执行以上方法 Mounting 首次创建 赞微海报分享
近期评论