useTime() React Hook
Countdowns in React are complicated/hard. Let’s use hooks to create a useTime hook.
Published in
3 min readOct 17, 2019
The Hook (Code First!)
Copy-paste this gist (https://gist.github.com/jamesfulford/7f3311bd918982e68d911a9c70b27415) and give it a try in your codebase. Don’t worry, this article will still be here when you get back.