AI-powered
podcast player
Listen to all your favourite podcasts with AI-powered features
Using Local Storage During Rendering of an Application?
So you're singing when you run this code. It runs before you call like reactom dot render. Exactly. So in this yes, so dark mode is a piece of react state because it can change over time. Users preference can change during during an application session. And usull also have a toggle that could change. But the point is, like, you can toggle dark mode to likemote during an application. That needs to be in some piece of state somewhere, right? Even if it's derived from multiple of these place of data. Yes. You could even write a function that a to the state, tha state, exactly. To actually do the readin ther you don