2min chapter

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

Get the Snipd
podcast app

Unlock the knowledge in podcasts with the podcast player of the future.
App store bannerPlay store banner

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode

Save any
moment

Hear something you like? Tap your headphones to save it with AI-generated key takeaways

Share
& Export

Send highlights to Twitter, WhatsApp or export them to Notion, Readwise & more

AI-powered
podcast player

Listen to all your favourite podcasts with AI-powered features

Discover
highlights

Listen to the best highlights from the podcasts you love and dive into the full episode