... useRef(null); We use the ref to store our timer ID by assigning the ID to the ref's current property: timerRef.current = setInterval(/* wibbly-wobbly, ...
確定! 回上一頁