DEV Community

Discussion on: Digital Clock in React

Collapse
 
dcwither profile image
Devin Witherspoon

Thanks for sharing! Looking at your code it seems your time updates every second, but not on the second. I actually wrote a react hook that tries to run the timeout right when the second changes if you’d like to see how that works.

Keep it up 🙂

Collapse
 
chikodish profile image
Ankit Kumar Gupta

Thank you for taking time to review and sharing such useful advise. I'll definitely update my code.
Thank you.