rotations first working version

This commit is contained in:
Sendou
2019-05-13 23:51:44 +03:00
parent 7a5801d9ef
commit 2207683e78
35 changed files with 299 additions and 4 deletions

View File

@@ -12,4 +12,15 @@ addFlex: async () => {
}
] )
return "ok"
return "ok"
-- React timer --
useEffect(() => {
const timeout = setTimeout(() => {
setCurrentTime(new Date(Math.floor(Date.now() / 1000)))
}, 1000)
return () => {
clearTimeout(timeout)
}
}, [currentTime])