Building a reusable time counter that auto-refreshes (properly) - Dynamic "now"

I wanted to build a simple counter that starts counting when pressing a button.
I struggled a bit with it and got some help from the awesome French :fr: community on Slack.

image

Eventually, it gave me some ideas about how to build my own, one that would be reusable across my entire application.

Here is a video that explains it all:

https://watch.screencastify.com/v/CGAXj5ogwtjjMB9JRGEo

4 Likes

Thanks for the solution, really helpful!

1 Like