React 確保 setState function 本身是穩定的,而且不會在重新render 時改變。 ... 如果你傳入了一個空的array( [] ),effect 內部的props 和state 就一直擁有其初始 ...
確定! 回上一頁