The second overflow bug: Implementing a clock in React

I recently built a small race timer tool for the browser using React . I think I will write a separate blog post about that 1 , but first I wanted to discuss a specific issue. I will demonstrate it by building a simple clock widget. The post assumes some previous experience of using modern React with hooks. First, let's just have a component that shows the time: function WatchFace ( { date }: {…