In this example, useEffect is passed an empty array, [] . Therefore, the effect function will be called only on mount.
確定! 回上一頁