Hadi Mobarra

Learning path · 5 articles

React in production

Structure, server components and performance, ending with an honest case study of this site.

  1. React Architecture: Where State Lives and Where Boundaries GoMost React codebases don't suffer from the wrong folder names. They suffer from state in the wrong place and modules without edges. A practical guide to both.5 min read
  2. A Mental Model for React Server Components and StreamingServer Components, Client Components, the RSC payload, Suspense streaming and Server Actions — explained as one coherent model, with the composition patterns and pitfalls that matter in a real Next.js codebase.6 min read
  3. Shipping a Static Next.js Site: Seven Things the Docs Won't Warn You AboutMetadata that silently disappears, two root layouts, social images without extensions, icons paid for twice. Lessons from rebuilding this bilingual site with Next.js 16 and static export.4 min read
  4. A Front-End Performance Workflow That Survives Real UsersMeasure in the field, find the one metric that hurts, break it into parts, fix the largest part, and put a budget on it. A workflow for LCP, INP and CLS, with numbers from a real site.5 min read
  5. I Cut This Site's JavaScript by 45%, and Blocking Time Didn't MoveRemoving 127 KB of JavaScript halved the time to largest paint and did almost nothing for Total Blocking Time. What I measured, what I ruled out, and a font mistake that CI caught.5 min read