If we just wanted to set an interval, we wouldn't need the ref (id could be local to the effect). useEffect(() => { const id = setInterval(() => ...
確定! 回上一頁