Frontend First cover image

Playing with Server Components in Vercel’s Edge Runtime

Frontend First

00:00

Using Javascrip to Render a Theme

The use case here was, you want a theme based off a theme. So let's think about if you had that for some other reason. A, you before the react ap renders, you, ah, figure out what the theme is by reading from local storage. And then you set a class on the body element and and the body element. Then a tak basically controls all the c s s a get surrendered so now your c s s is like just going to work because youre your body,. Your body tag at's like theme rid or the and you can do this for a whole bunch of things, like if the users logged in or not. You don't have to deal

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