How to build a React countdown timer as a custom hook
Nov 8, 2020
While working an app that helps doctors gather answers to surveys via voice input I ran into a challenge of implementing a countdown timer that will allow patients a minute-long response and then stop recording.
A working example can be found in react docs where they explain how to best handle situations where your dependencies change a lot. As it is the case with the…