This course will be retired on March 1, 2023. We recommend "React Components" for up-to-date content.
Designing the Stopwatch3:41 with Guil Hernandez
We're going build a stopwatch into our scoreboard app. It will be a stateful component that counts seconds, and allows users to start, stop and reset the time.
<div className="stopwatch"> <h2>Stopwatch</h2> <span className="stopwatch-time">0</span> <button>Start</button> <button>Reset</button> </div>
You need to sign up for Treehouse in order to download course files.Sign up