Vue生命周期 VS React生命周期

react


 Vue生命周:

 

beforeCreate:

created:

beforeMount:

mounted:

beforeUpdate:

updated:

activated

deactivated:

beforeDestroy:

destroyed:

 如图:



 

React生命周期

constructor

componentWillMount

render

componentDidMount

 

shouldComponentUpdate

componentWillUpdate

render

componentDidUpdate

 

如图:

 


 

 

 

 

二者对比文章搜集:

React.js与Vue.js:流行框架的比较

https://baijiahao.baidu.com/s?id=1608099200125495014&wfr=spider&for=pc

vue和react的区别之我见

https://www.jianshu.com/p/b7cd52868e95?from=groupmessage

以上是 Vue生命周期 VS React生命周期 的全部内容, 来源链接: utcz.com/z/383745.html

回到顶部