Loading
Current section: Cookies 5 exercises
Problem

Adding User Preference for Dark Mode

Loading exercise

Transcript

00:00 So the app already does have the ability to have a dark mode. We just need to control the class and poof, it turns into dark mode. So what you need to do is handle the wiring of the cookie so that we can preserve the user's preference between light and dark mode. And then once we are updating that cookie

00:20 based on clicking on this, then we should be able to wire that into the class name on the HTML element. So that's what you're gonna be doing in this one. You're gonna be working in the root TSX, but we also have a theme module that you're gonna be working in as well. So get to it and we'll see you when you're done.