react生命週期函數

生命週期函數:某一時刻組件會自動調用執行的函數 render也是 initialization(初始化) constructor裏 mounting(掛載) componentWIllMount(){//在組件即將掛載到頁面上時執行 } //接下來render(){ } conponentDidMount(){//掛載到頁面之後自動執行 } updation componentWillReceiv
相關文章
相關標籤/搜索