一個React component 的constructor 會在其被mount 之前被呼叫。 ... 少見的生命週期方法,其回傳的值將會被當作第三個「snapshot」參數傳給 componentDidUpdate() 。
確定! 回上一頁