mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-09-30 15:17:43 -05:00
rotations first working version
This commit is contained in:
@@ -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])
|
||||
Reference in New Issue
Block a user