import { useEffect } from 'react'; useEffect(() => { // 副作用 return () => { // 清理函式 }; }, [依賴]);. 第一步:傳入副作用. 最基礎的用法就是 ...
確定! 回上一頁