The "use client" Tax
Why React Server Components force small interactive ideas into file-sized boundaries — and why that...
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.