getDefaultProps(),调用1次
getInitialState(),调用1次
componentWillMount(),调用1次
render(),调用>=1次
componentDidMount():仅客户端,调用1次
componentWillReceiveProps(object nextProps),调用>=0次
ShouldComponentUpdate(object nextProps, object nextState),调用>=0次
componentWillUpdate(object nextProps, object nextState),调用>=0次
render(),调用>=1次
componentDidUpdate(object prevProps, object prevState),调用>=0次
componentWillUnmount(),调用1次
react生命周期以及渲染次数
最新推荐文章于 2024-04-16 08:36:12 发布