In React, this is done by passing an empty array as the second parameter to the useEffect() hook. 1useEffect(()=>{ 2 alert('reload!') 3},[]).
確定! 回上一頁