理解分別以 useRef / useState 建立組件變數時的差異,並感受各自的適用情境。 ... null) { // 產生計數器 const id = setInterval(() => tick(id), ...
確定! 回上一頁