React0718

1.當組件的state和props發生變化時,render函數會被自動調用

2.虛擬DOM實際上是一個描述DOM元素的js對象

3.生命週期:

compontentWillMount、render、compontentDidMount、shouldComponentUpdate、componentWillUpdate、componentWillRecieveProps、(render、)componentDidUpdate、componentWillUnmount

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章