You need to put empty array (dependency) after the callback function: Change to: useEffect(() => { country = getCookie("title"); ...
確定! 回上一頁