自己寫React 也兩年了,針對Hook 跟舊的Class 寫法跟做比較。 ... 內呼叫Hook,這樣你才能確保每一次component render 時Hook 被呼叫順序都要是一樣的.
確定! 回上一頁