We can assign the timer to timerRef.current and access it when the component unmounts: const timerRef = useRef(null); const sendMessage = (e) => { e.
確定! 回上一頁