此外,當你多次使用同一個自訂的Hooks 時,所有的狀態(state)和作用(effect)都是完全獨立的。 Sample Codes. 回傳一個狀態的Custom Hook. import ...
確定! 回上一頁