Update the Stopwatch State with componentDidMount()8:49 with Guil Hernandez
In this video, we'll use the
componentDidMount() lifecycle method to make the stopwatch tick. React's built-in lifecycle methods get called at each point in a component's life-cycle. The methods act as hooks you can use to run code at key times in the life-cycle. This gives you the ability to control what happens when a component mounts, updates and unmounts.
You need to sign up for Treehouse in order to download course files.Sign up