WeSearch

The "use client" Tax

·7 min read · 0 reactions · 0 comments · 1 view
The "use client" Tax

Why React Server Components force small interactive ideas into file-sized boundaries — and why that...

Original article
DEV Community
Read full at DEV Community →
Opening excerpt (first ~120 words) tap to expand

try { if(localStorage) { let currentUser = localStorage.getItem('current_user'); if (currentUser) { currentUser = JSON.parse(currentUser); if (currentUser.id === 1115191) { document.getElementById('article-show-container').classList.add('current-user-is-article-author'); } } } } catch (e) { console.error(e); } Viktor Lázár Posted on Apr 28 The "use client" Tax #rsc #react #bundler #compiler Why React Server Components force small interactive ideas into file-sized boundaries — and why that boundary should be lexical instead. There is a moment that every developer who tries React Server Components hits, usually within their first hour. They write a server component. It fetches some data. It renders a list. Beautiful.

Excerpt limited to ~120 words for fair-use compliance. The full article is at DEV Community.

Anonymous · no account needed
Share 𝕏 Facebook Reddit LinkedIn Threads WhatsApp Bluesky Mastodon Email

Discussion

0 comments

More from DEV Community