5.1 · Web frameworks (2026)
| Framework | Sweet spot | Watch out |
| Next.js (React) | Default for most product apps; App Router + RSC + Server Actions + Turbopack. | Vercel pull; RSC mental model. |
| Remix / React Router 7 | Web-platform-first; great forms & nested routing. | Smaller ecosystem than Next. |
| Astro | Content sites; islands; ship ~0 KB JS by default. | Not a SPA framework. |
| SvelteKit | Smaller bundles, simpler model; great DX. | Smaller hiring pool. |
| Nuxt (Vue) | Vue ecosystems; strong in EU/Asia. | Less momentum than Next. |
| SolidStart | Fine-grained reactivity; very fast. | Tiny community. |
| Qwik | Resumability — near-instant TTI on huge apps. | Adoption slow. |
| HTMX + server templates | Server-rendered apps with surgical interactivity. | Not for rich SPAs. |
| Angular | Enterprise apps; opinionated; signals in v17+. | Heavy footprint. |
| Phoenix LiveView | Real-time UI over WebSocket; no JS framework needed. | Elixir-only. |
5.2 · Rendering modes
5.3 · State management
| Lib | For |
| Built-in React state + Context | Most components; don't over-engineer. |
| Zustand / Jotai | Small global stores without Redux ceremony. |
| Redux Toolkit | Big apps with complex flows. |
| TanStack Query / SWR | Server state — caching, dedupe, mutations, polling. |
| XState | State machines for complex flows. |
| Signals (Solid / Preact / Vue ref) | Fine-grained reactivity. |
Default: server state via TanStack Query, client state via Zustand or built-ins.
5.4 · CSS & design systems
| Approach | Picks |
| Utility-first | Tailwind CSS (default 2026); UnoCSS. |
| CSS-in-JS | Vanilla-extract, Panda CSS, Emotion. |
| Headless component libs | Radix UI, Headless UI, React Aria. |
| Full UI libs | shadcn/ui (copy-paste, owns the code), MUI, Mantine, Ant Design. |
| Design tokens | Style Dictionary, Tokens Studio — sync Figma ↔ code. |
5.5 · Data fetching
- Default: server-component fetch + Server Actions in Next 15+.
- Client-side: TanStack Query / SWR.
- Typed end-to-end: tRPC (TS monorepo) or generated clients from OpenAPI / GraphQL.
- Streaming + Suspense: skeletons fast, hydrate progressively.
5.6 · Build tools
| Tool | Where |
| Vite | SPA / library dev. Fast HMR. The default 2026 dev server. |
| Turbopack | Next.js bundler (Rust). Production-grade. |
| esbuild / swc | Underneath everything fast. |
| Bun | JS runtime + bundler + package manager + test runner. |
| Rspack / Rolldown | Rust-based Webpack/Rollup replacements. |
5.7 · Monorepos
| Tool | Notes |
| pnpm workspaces | Cheap, fast, the default base. |
| Turborepo | Cached task runner for JS/TS monorepos. |
| Nx | Polyglot, opinionated. Strong for very large orgs. |
| Moon / Lage | Newer alternatives. |
| Bazel / Pants | Hermetic, cross-language; massive scale. |
5.8 · Performance — Core Web Vitals
| Metric | What it measures | Good target |
| LCP | Loading (largest content paint) | < 2.5s |
| INP | Responsiveness (interaction → next paint) | < 200ms |
| CLS | Visual stability (layout shift) | < 0.1 |
| TTFB | Server response time | < 800ms |
| Initial JS | What ships first request | < 150 KB gzipped |
5.9 · Accessibility & i18n
- WCAG 2.2 AA baseline. Test with axe + manual keyboard.
- Semantic HTML first; ARIA second.
- Keyboard focus visible; tab order matches reading order.
- i18n via ICU MessageFormat (FormatJS, lingui, next-intl). Pluralisation, RTL, locale-aware dates.
5.10 · Testing
- Unit — Vitest / Jest.
- Component — Testing Library + Storybook stories-as-tests.
- E2E — Playwright (default 2026).
- Visual regression — Chromatic, Percy.
- Synthetic — Checkly, Datadog Synthetics.
5.11 · Mobile & cross-platform
| Option | One-line |
| Native (Swift / Kotlin) | Best perf + platform fidelity; double the team. |
| React Native + Expo | React mental model; New Architecture is solid; OTA updates via EAS. |
| Flutter | Single rendering engine, pixel-perfect everywhere; Dart. |
| Kotlin Multiplatform / Compose Multiplatform | Share logic, optionally UI. |
| PWA | Cheapest; weak on hardware features & iOS install UX. |
5.12 · Desktop apps
| Tool | Notes |
| Electron | Chromium + Node; big but mature. |
| Tauri | Rust + native webview; small binaries, fast. |
| Wails | Go + native webview. |
| Flutter Desktop | Single codebase from mobile. |
| SwiftUI / WinUI / GTK / Qt | Native per-platform. |
5.13 · Self-check
Q1 · The right tool for server state (caching, dedupe, refetch) in React is…
Redux
TanStack Query / SWR
Context only
localStorage