This course has been updated! We now recommend you take the React Performance course.

Check out a free preview of the full State Management in Pure React, v2 course:
The "document.title Exercise" Lesson is part of the full, State Management in Pure React, v2 course featured in this preview video. Here's what you'd learn in this lesson:

The students are instructed to go update the document title every time the state has changed.

Get Unlimited Access Now

Transcript from the "document.title Exercise" Lesson

[00:00:00]
>> So your job is to change this a little bit. I will save this code and I will push it up, so you can kind of refactor it. What I want you to do is, it turns out it's super fun to change document title with JavaScript. You can say something along the lines of And you can see that it is now, hello.

[00:00:24] You can change the document title. What I want you to do is, every time the state has changed in increment, decrement, and reset, we wanna just update the document title as well.