to execute useEffect only once you have to add dependency array with no dependency. Something like this: useEffect(() => { // this code will ...
確定! 回上一頁