The book
Modern React SPA
Production patterns for React 19.2.
- ๐ 37 chapters ยท ~600 pages ยท TypeScript-first
- ๐ง ~50 Under-the-hood expert subsections
- ๐งช ~25 hands-on labs with starter repos
- ๐ Full code listings โ real screens, not snippets
- ๐ฅ PDF + EPUB, updated for each React release
What you'll learn
- โ Architect a multi-team SPA with deliberate component boundaries and Suspense placement
- โ Pick the right state library for each kind of state โ local, global, server cache, URL
- โ Set up Vite, Tailwind v4, and shadcn/ui on React 19.2 in under five minutes
- โ Configure a monorepo with Turborepo, Bun workspaces, and CI affected-only builds
- โ Run Module Federation host + remotes safely, with six known failure modes documented
- โ Enforce Core Web Vitals budgets in CI so regressions never ship
- โ Debug stale closures, hydration mismatches, memory leaks, and race conditions
- โ Migrate from CRA / Webpack to Vite without freezing feature work
What's in the book that isn't on the site
The free articles cover the patterns and decisions. The book adds the depth โ internals, labs, and full code โ that turns reading into shipping.
๐ง
๐ง Under the hood
Every non-trivial topic ships with an expert subsection โ algorithm, data structures, what React DevTools surfaces, debugging recipes. ~50 sections.
๐งช
Hands-on labs
A focused exercise per chapter, complete with starter repo and reference solution. ~25 labs total.
๐
Full code listings
Real screens, not snippets. Tenant lists, invoice editors, dashboards โ copy-paste-ready in TypeScript.
๐
Ordered curriculum
The chapters build deliberately. Ch 12 (state taxonomy) sets up Ch 13โ15; Ch 26 (federation) sets up Ch 27 + 29.
Full chapter index
- Ch 01 React Evolution at a Glance (v15 โ v18)
- Ch 02 What's New in React 19.2
- Ch 03 Modern Hooks Deep Dive
- Ch 04 Component Architecture for SPAs
- Ch 05 ๐ Chapter 5 ยท Routing in 2026 โ Two Flavours
- Ch 06 ๐ Chapter 6 ยท Forms Done Right
- Ch 07 shadcn/ui Integration
- Ch 08 Icons, Tailwind & CSS Customization
- Ch 09 Layouts โ From CSS Flexbox/Grid to Dockable Workspaces
- Ch 10 Desktop & Shell UIs with Blueprint.js
- Ch 11 Building a Component Library (with Storybook)
- Ch 12 The Four Kinds of State
- Ch 13 Global State โ Zustand, Jotai, Recoil, Redux Toolkit
- Ch 14 Server State โ TanStack Query (React Query)
- Ch 15 URL as State
- Ch 16 The Bundler Landscape in 2026
- Ch 17 Vite Deep Dive
- Ch 18 Bun & Deno โ New JavaScript Runtimes for React SPAs
- Ch 19 Monorepo Configuration โ Workspaces, Turborepo, Nx, with a Bun focus
- Ch 20 Parcel, Rspack, Turbopack โ when they fit
- Ch 21 Migrating from CRA / Webpack to Vite
- Ch 22 The SSG Spectrum
- Ch 23 SSG Tools for React
- Ch 24 Hybrid โ SPA Shell + Pre-rendered Pages
- Ch 25 Architecting a Multi-Team SPA
- Ch 26 Module Federation in Depth
- Ch 27 Running Different React Versions Together
- Ch 28 Enterprise Concerns
- Ch 29 State Management Complexity at Scale
- Ch 30 The Performance Budget
- Ch 31 Bundle Optimization
- Ch 32 Runtime Performance
- Ch 33 Network Performance
- Ch 34 Debugging Strategies
- Ch 35 Hard Bugs and How to Find Them
- Ch 36 Testing Modern React SPAs โ the Full Pyramid
- Ch 37 Delivery Pipelines
Coming soon
Available 15 August 2026
Thank you for your patience while we finish production.
Buy the book โ