Update sending-messages.md

This commit is contained in:
Kent C. Dodds
2022-09-10 09:42:40 -06:00
committed by GitHub
parent 1fa4bc800b
commit 4db8db0f2d

View File

@@ -28,7 +28,7 @@ function Uptime() {
useEffect(() => {
const interval = setInterval(() => {
currentTime(Date.now())
setCurrentTime(Date.now())
}, 3000)
return () => clearInterval(interval)
}, [])