And if the array is empty, then useEffect will only run once. One thing that makes the useEffect tricky is when calling a function in useEffect.
確定! 回上一頁