So, as you have already found out, the way to use setTimeout or setInterval with hooks is to wrap them in useEffect , like so: React.
確定! 回上一頁