cleanup + small refract

- websockets
- event api
This commit is contained in:
cv
2021-04-11 19:17:54 +02:00
parent dee0ff1a5c
commit 964bdf0d2a
12 changed files with 145 additions and 149 deletions
@@ -14,11 +14,8 @@ export default function Countdown(props) {
const [clock, setClock] = useState(time);
let display = '-- : -- : --';
console.log('websocket: time and t', time);
useEffect(() => {
setClock(time);
console.log('websocket: time changed', time)
}, [time]);
// prepare display string