Frontend First cover image

Playing with Server Components in Vercel’s Edge Runtime

Frontend First

CHAPTER

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

00:00
Transcript
Play full episode

Remember Everything You Learn from Podcasts

Save insights instantly, chat with episodes, and build lasting knowledge - all powered by AI.
App store bannerPlay store banner