Update Time.jsx (#255)

This commit is contained in:
vwkd
2024-10-04 17:13:50 +02:00
committed by GitHub
parent 54cf29adc8
commit b47c37e00e

View File

@@ -8,9 +8,7 @@ export default function Time() {
setTime(new Date().toLocaleTimeString());
}, 1000);
return () => {
clearInterval(timer);
};
return () => clearInterval(timer);
}, []);
return <p>Current time: {time}</p>;