React tutorial for beginners 2022 – Creating a count down timer using useEffect



In this video I show you how to implement a countdown timer using the in react using hooks. I start off by showing you should not implement a countdown timer, and then show you how to do it correctly. using the useEffect hook.

Code for this video can be found at https://github.com/lyraddigital/react-useeffect-countdown-timer

The main branch contains the final output of the video, but there is also a startup branch which represents the start of this video.

Hopefully this helps you on your journey to learn React.js.

Daryl

source