react生命周期
react組價掛載階段起首執行的是constructor
然后,執行的是componentWillMount
掛載階段的第三個生命周期函數是render(這是掛載階段的render);
掛載階段最后一個是componentDidMount
然后卸載階段的是componentWillUnmount;
0 篇文章
如果覺得我的文章對您有用,請隨意打賞。你的支持將鼓勵我繼續創作!