App architecture
63 readings on state, data, routing, frameworks, each with our note on why it matters.The articles are the originals — read them there.
Client & server state management
Making React Context Cheap with React Compiler
You're moving state out of Context (or adding a selector library) for render cost while on React Compiler: measure first — in one 5,000-item benchmark the compiled context consumer matched a useSyncExternalStore store.
Measures whether React Compiler removes the usual reason to leave Context for a store or a context-selector library. Every consumer still re-renders on each change, but the compiler reuses JSX and values whose inputs did not change, the same idea as an outer consumer plus a memoized child, applied inside one component. 5,000 radios, p95 in a production build (M3 Pro, Chrome): click 18.4 ms with the compiler, 18.9 ms with a hand-memoized view, 19.2 ms with a useSyncExternalStore store; mount 141.0 / 145.0 / 147.6 ms. The author calls the benchmark narrow (Codex-generated, one scenario) and quotes the React team's position that the compiler already gives most of what people want from context selectors.
Structural sharing, selectAtom, and why your Jotai atoms re-render too much
You ship Jotai — selectAtom is a trap; decompose objects into primitive atoms and use write-layer structural sharing so atomic state is actually fine-grained (Object.is propagation decides what re-renders).
The first Jotai-specific deep-dive here, for the entry's 'fine-grained atoms → Jotai' clause: Object.is propagation mechanics, why selectAtom is a trap (decompose into primitive atoms instead), and write-layer structural sharing à la React Query. The re-render discipline that makes atomic state actually fine-grained.
How to Build the Fastest Apps: Break the Rules (App.js Conf 2026)
The performance case for signal/observable state.
React's `render` over-orchestrates: `useState`/`useContext` couple state *ownership* with *subscription*, so lifting state up and over-subscribed context cascade re-renders top-down — measured ~10x CPU vs updating one leaf node. The fix ('render once'): create state without subscribing (observables / Reanimated shared values), own it high in the tree, push subscription down so only leaf nodes re-render themselves; provide stable objects through Context so the provider never re-renders; subscribe to derived values, not raw ids. Vendor talk (his own Legend State), but the ownership-vs-subscription principle is framework-agnostic and transfers to Jotai atoms, TanStack Store/Signals, and use-context-selector.
React Query as a State Manager
You ship a client store but no server cache — server state (stale-while-revalidate, invalidation, retries) is a different problem; replicating it in the store is the classic mistake this piece dismantles.
The canonical case for treating server state as its own thing (stale-while-revalidate, staleTime, query-key sharing) so you stop replicating it in a client store. The source of the server-state-vs-client-state split.
Why React Context is Not a State Management Tool
You ship no client store — Context is dependency injection, not state management; every consumer re-renders on any value change, so frequently-changing shared state belongs in a selector-based store.
Draws the precise line between dependency injection (Context), client-state stores (Redux/Zustand), and async/server state — the vocabulary that justifies splitting the problem instead of forcing one tool to do all three.
How is Linear so fast? A technical breakdown
Breakdown of Linear's local-first architecture — IndexedDB as the primary store, optimistic updates, granular observables, aggressive code-splitting, GPU-only animation.
The reference for building instant-feeling client-state apps.
Component Communication Patterns in React Applications
A decision framework for WHERE state should live, keyed by component proximity × data type: props/callbacks for adjacent components, lifted state or composition for siblings, context for slow-changing globals, Zustand for frequently-updated client state, TanStack Query for server data, URL params for view state, events for fire-and-forget.
'Reach for the closest tool that can actually reach the problem, and only move outward when it stops working.' The how-to-choose guide that operationalizes this entry's server-vs-client-vs-view split.
Do we need state management libraries anymore?
You ship a client store — every popular one converges on useSyncExternalStore; know what the primitive gives you for free (and where a hand-rolled selector store loops) so the dependency is bought for ergonomics/devtools, not for the mechanism.
The build-vs-buy answer behind this entry's '~34% use no state library' and 'don't add a lib' clauses. Reads Redux, Zustand, Jotai, MobX and Valtio under the hood and shows they all converge on the SAME React primitive — useSyncExternalStore — then builds a working store from scratch with selectors, showing which three problems the primitive solves for free and where the naive version loops infinitely. The point is not that libraries are useless but that you should know what ~50 lines of understood code buys you before adding a dependency: what you pay for is ergonomics, devtools and middleware, not the subscription mechanism.
The Absolute State of Management
The vocabulary attack on this entry's own subject: Russell argues that Redux, MobX, Zustand — and React itself — don't MANAGE state, they PROPAGATE it, and that real state management is about time and conflicts (the problem CRDTs and sync engines actually solve).
Deliberately provocative, and Redux maintainer Mark Erikson pushed back publicly, so read it as a framing argument rather than a verdict. Its durable value here is a third axis next to the client-vs-server split: when your problem is concurrent edits and reconciliation, no propagation library is the answer — that's the local-first/sync-engine row (TanStack DB, Zero — see RB-E-DATA).
Data fetching & caching
How we cut Next.js memory from ~5GB to ~1GB: the react-query timer holding every SSR request
Heap-snapshot postmortem: during SSR, react-query v3 starts a cacheTime setTimeout per query to garbage-collect it, and Node attaches the request's AsyncLocalStorage context to that timer, so every finished request stays reachable until the timer fires; building server-side queries with cacheTime: Infinity took pods from ~4.8 GiB to ~1.2 GiB.
v4 and v5 default cacheTime/gcTime to Infinity on the server, but a query that passes an explicit finite value still starts the timer, so upgrading alone does not close it.
Real-time and offline are the same problem
You're adding offline or realtime sync: plan both as one reconciliation layer — client-generated IDs from day one, and your own conflict UI and mutation rollback, since Zero/Verdant are last-write-wins and none ship recovery.
Treats offline support and real-time sync as one problem, divergent-state reconciliation, and walks it through Verdant, TanStack DB and Zero on two prototypes. Concrete consequences: local mutations need client-generated IDs (UUIDv7 suggested), so allowing them later is a breaking migration; Verdant and Zero effectively resolve conflicts as last-write-wins and none of the three offers built-in rollback, retry or user-facing conflict choices; TanStack DB leaves the sync layer to you. Prototype-based (no production data) and written by the React Admin maintainers, which the article does not hide.
Reliable Query Prefetching with TanStack Router
You ship TanStack Router + Query — define queryOptions in the route's context function so the loader (ensureQueryData) and components (useRouteContext) consume one object; separate definitions silently diverge into over-prefetching or waterfalls.
Part 4 of the series ('TanStack Router and Query' below is part 3), and it names that pattern's failure mode at scale: the route loader and the component fetch from two places that must stay 100% in sync, there is no error when they diverge, and drift means prefetching data you no longer use or waterfalling data you forgot to prefetch. The fix is to create queryOptions in the route's `context` function — the loader calls ensureQueryData(context.xQueryOptions) and components consume the SAME object via Route.useRouteContext(), so one definition feeds both sides; child routes see every parent's queryOptions through context inheritance. Addresses the re-render worry directly: the context function re-runs only when params or loaderDeps change, so unrelated search-param churn doesn't re-render context subscribers.
Coordinating Optimistic Updates in Next.js
You are deciding whether an RSC/Server-Function app needs TanStack Query or SWR — the test is whether data changes on its OWN (polling, pushes). User-driven writes are served by useActionState + useOptimistic; a client cache means keeping two caches in sync.
Answers the question this entry's 'skip a client cache where you can' clause leaves open — when DO you need one — from the other side: two real apps built without one. The pattern is useActionState as an async reducer holding the confirmed-plus-queued state (React queues Actions, so overlapping writes apply in order instead of racing) with useOptimistic layering the in-flight change on top; rollback needs no reverse-change calculation because when the Transition ends the optimistic layer simply disappears and the server data shows through. Scaling it past one component means lifting the queue and the optimistic state into a context provider so sibling subtrees see the same pending change. The criterion at the end is the durable part: reach for TanStack Query or SWR when the data changes ON ITS OWN (messages arriving while you read), not when it only changes because the user acted (a dragged channel layout) — and be honest that adopting one in an RSC app leaves you coordinating TWO caches, invalidating the server cache inside the Server Function and the client keys in the browser. The author's own closing caveat: reducer + Action queue + optimistic state is a fair amount of wiring.
You ship TanStack Query — the maintainer's guidance is to structure around queryOptions objects, not per-query custom hooks (composable across useQuery/prefetch/suspense).
Maintainer-authored architecture guidance: queryOptions objects (not custom hooks) are THE abstraction layer for queries — composable, framework-portable, and reusable across useQuery/prefetch/suspense call sites. The how-to-structure companion to 'Why You Want React Query'.
You ship TanStack Router — its loader cache is per-route while Query's is global; the maintainer maps when route-loader caching alone suffices and how to layer both without double-fetching.
The selection question this entry's TanStack rows raise: Router's cache is per-route, Query's is global — when route-loader caching alone suffices, when you want the full query cache, and how to layer them without double-fetching. Maintainer-authored.
You ship an HTTP client but no server cache — hand-rolled fetching hides race conditions, StrictMode double-fires, and stale error states; a server cache (TanStack Query) fixes the class.
Takes a naive fetch-in-useEffect and exposes the five real bugs it hides (race conditions, missing loading/empty states, stale data+error pairs, StrictMode double-fire), then shows how a server cache fixes them. The durable answer to why-not-just-useEffect.
From latency to instant: modernizing GitHub Issues navigation performance
Engineering case study on local-first caching, stale-while-revalidate, service-worker hard-navigation, and preheating vs naive prefetch, with measured percentile gains.
Durable client-side data-caching patterns at scale.
The Best Loading States Are No Loading States
Argues loading UI belongs at the app/route level (transitions + preload-on-hover/intersection) rather than scattered component spinners, using blank regions as a preload diagnostic.
Durable, framework-agnostic data-loading-UX thinking.
use(): the hook that breaks the rules (on purpose)
Deep-dive on the use() hook — unwrapping promises/context at render under Suspense, the promise-identity caching requirement, and why it can legally run conditionally unlike other hooks.
The modern data-fetching primitive explained.
Real-time cache invalidation (SSE + tRPC + Redis + BullMQ)
A full architecture for pushing invalidation EVENTS (not data) over SSE to drive TanStack Query cache updates, with reference-counted subscriptions and horizontal-scaling guidance.
The real-time dimension the other DATA readings don't cover.
What Does a GraphQL / Server-State Client Cost You Per Request?
You route high-frequency data (WebSocket ticks, polling) through a server-state client — the cost is per cache write and measurable: on low-end Android, RTK Query billed ~3.2s of JS-thread self-time vs ~0.9s for TanStack Query/Relay.
The only PRICE TAG on this entry's options: one Expo app (SDK 57 / RN 0.86 / React 19, New Arch) built six times behind an identical DataLayer contract against Coinbase's public GraphQL API, Maestro-driven, on a low-end Samsung A16, measured with Flashlight plus a Hermes sampling profiler started at bundle load. Library self-time summed across three flows — Vanilla 0ms, Jotai 122ms, Zustand 277ms, Relay 804ms, TanStack Query 904ms, RTK Query 3218ms. The durable finding is the SHAPE, not the ranking: cost is per CACHE WRITE, so a network response, a live tick and an optimistic update each pay it — RTK Query's number explodes only in the flow with WebSocket price ticks. Pick for the features you need, then keep firehose data out of the expensive path. (Reproducible: AndreiCalazans/GraphqlClientComparison.)
You Should Not Use Relay for Everything
You ship Relay — scope it to cross-referenced entity data: config, experiments, volatile time-series, server-driven UI trees and inlined assets don't benefit from normalization, and a plain store beside Relay is strictly cheaper for them.
The counterweight to this entry's 'Relay for scale' row, from the same author as the cost benchmark above: Relay's normalized store earns its cost only for cross-referenced entities — for client config, index-based experiments, volatile time-series ticks, server-driven UI trees and inlined assets, normalization is pure overhead (an 18MB Relay store profiled in production), and a plain store with its own fetch/refresh/persist policy is strictly cheaper. Scoping guidance, not anti-Relay: use it where cross-entity consistency pays.
Peer-to-peer / local-first backend (Holepunch · Pear)
Pear by Holepunch — building blocks & architecture (docs)
You ship the Hypercore stack — data is a local append-only log merged by Autobase, indexed in Hyperbee, synced over Hyperswarm; a conventional client cache/REST layer is N/A by design, and these docs are the canonical reference.
The canonical reference for the Holepunch stack — Hypercore (append-only log), Autobase (multiwriter), Hyperbee (B-tree index), Hyperswarm/HyperDHT (discovery), Hyperdrive (files), Corestore, and the Pear runtime. The 'why' behind P2P/local-first; pair with the holepunch-p2p-systems skill for build/review depth.
Navigation & routing
React Native Navigation Benchmarks (State of RN Navigation)
Choosing an RN navigation library on startup or memory: one Android device gave cold starts of 316/358/398/917 ms and peak RAM 195/214/241/308 MB for react-native-navigation / React Navigation v7 / navigation / Expo Router.
The measured evidence this entry's RN recommendation never had: the same app built four times over four navigation libraries and profiled on one Android device (Expo SDK 56, RN 0.85, Hermes, New Architecture, Samsung Galaxy A16, release/profileable builds; cold start = the OS Displayed metric, median of 3; FPS/CPU/RAM via Flashlight driving Maestro; breakdowns from Perfetto Systrace + source-mapped Hermes CPU profiles, all data and scripts published). Cold start: react-native-navigation 316 ms · React Navigation v7 358 ms · navigation (Graham Mendick) 398 ms · Expo Router 917 ms. Peak RAM: 195 / 214 / 241 / 308 MB. All four hold ~60 FPS, so the difference is startup and memory, not smoothness. The WHY matters more than the ranking: (1) Expo Router's ~3x cold start is NOT Reanimated — a controlled experiment put Reanimated at only ~62 ms — it is a 2x bigger bundle plus router-on-top-of-React-Navigation layering that evaluates 106 JS modules at boot against 36–43 for the others; (2) Reanimated IS the RAM story — adding it alone to the leanest app reproduced Expo Router's entire ~125 MB premium, almost all anonymous heap from the second Hermes runtime Worklets spins up; (3) react-native-navigation wins because its tabs and stack are Kotlin views, so its JS bundle evaluates in 55 ms against React Navigation's 168 ms of real component tree — but the author's own caveat is that the same design chokes on large screens and drops frames. Read the caveats before quoting the table: rn-navigation is a BARE RN app (some of its lead is 'no expo-modules-core', not the navigation library), it is one device and one trivial UI, and Expo Router buys deep linking, lazy screen loading, file-based routing and web support that this benchmark does not price.
Detour: deferred deep linking done right in Expo Router
You ship invite or referral links into Expo Router — a plain deep link does NOT survive the store install, so first-launch intent needs deferred deep linking with a server behind it; resolve it in +native-intent.tsx and hold it across your auth gate.
Names a hole every referral/invite flow eventually falls into: standard deep links (Universal Links / App Links) only work when the app is ALREADY installed — iOS and Android preserve nothing across the store boundary, so a new user who taps an invite link launches the app blind to what they clicked. That is the Installation Gap, and closing it needs a server that remembers the click, which is why this has historically meant adopting an attribution SDK (deep linking as its side feature) and hand-writing glue between its callback and your router. The router-side argument is the durable part: because Expo Router exposes `+native-intent.tsx` as pre-routing middleware (redirectSystemPath), the deferred link can be resolved BEFORE the first screen mounts, which removes the post-mount useEffect race, duplicate navigation events and the ordering problem with auth gates; the remaining case — link resolves, user isn't signed in yet, guard redirects to /login and swallows it — is handled by holding the intent in a provider until the app says the user is ready. Vendor content (SWM's own SDK, @swmansion/react-native-detour 2.3.1, and it needs a Detour account for app credentials), but the failure mode and the +native-intent hook are general.
Reverse Engineering ChatGPT Web: How OpenAI Built for a Billion Users
You ship React Router — it runs ChatGPT's web app at billion-user scale (framework mode + streaming SSR), so the stack choice is production-proven; the teardown shows what a tuned RR7 deployment looks like.
Production evidence for React Router 7 framework mode at billion-user scale: ChatGPT migrated Next.js Pages Router → Remix (2024) → RR7 with streaming SSR, TanStack Query seeded from server render, Tailwind 4 tokens, ProseMirror composer — 84KB HTML document, 50-65ms TTFB. The concrete counterweight to 'serious apps need Next.js', and the highest-profile data point behind this entry's React Router when-clause. (4 independent newsletter signals in one week.)
TanStack Router's New Reactive Core: A Signal Graph
The primary source behind this entry's 'signal-based core' claim: the monolithic router.state was decomposed into a graph of independent stores so route changes update only affected subscribers (React navigation 7ms→4.5ms in their measurements).
The architecture under TanStack Router's fine-grained reactivity.
Exploring Inlined Requires: does Expo Router give you screen-level lazy loading?
You ship Expo Router — screens are lazy-loaded by construction, but layouts and the initial route load eagerly and it's sync require, not bundle-splitting; know the mechanism before optimizing startup.
Instrumented proof that Expo Router defers screen loading by construction via require.context() getters wrapped in getComponent thunks — with the precise caveats (layouts/initial route load eagerly; sync require, not bundle-splitting). The canonical explanation of Expo Router's lazy-loading mechanism.
React Router loaders and actions as integration points
You ship React Router — treat loaders/actions as the HTTP-to-domain seam: keep business logic in testable services and reserve loaders/actions for the integration layer, tested E2E.
Frames loaders/actions as the HTTP-to-domain seam — keep business logic in testable services, reserve loaders/actions for the integration layer (E2E). A durable testing/architecture philosophy for React Router.
Deep Links With Authentication in React Navigation
You ship React Navigation — if deep links can land behind auth, the maintainer's routeNamesChangeBehavior 'lastUnhandled' pattern replaces hand-rolled redirect-after-login plumbing.
The redirect-after-login problem: a deep link that lands on the login screen should still deliver the user to the intended screen afterwards. Walks the manual approaches in older React Navigation and the new API that handles it (routeNamesChangeBehavior 'lastUnhandled' re-dispatching the unhandled link when auth state flips). From the library's own maintainer.
Migrating to native stack navigation, with a surprise from iOS 26
You ship React Navigation — native-stack applies platform constraints JS-stack merely tolerated: iOS 26 Liquid Glass is inherited (UIDesignRequiresCompatibility opts out) and the 44pt native bar clips taller header content.
The JS-stack-vs-native-stack behavioral difference no other reading here covers, learned in a real 0.77→New-Arch migration: moving to native-stack means the REAL platform components apply — the app suddenly inherited iOS 26 Liquid Glass styling (opt out with UIDesignRequiresCompatibility in Info.plist while unready), and a 55pt header logo got clipped because the native bar is a hard 44pt. The durable frame: JS-stack headers merely TOLERATED overflow the platform never allowed; native-stack enforces what iOS actually permits, so audit header content heights when migrating. (Live URL is bot-walled — content verified via Wayback snapshot 2026-07-15.)
How to ready your app for iPhone Duo: SDK 58 changes, Expo Router, and new APIs
Your app runs on iOS — on iPhone Duo the system bars move into a side rail with an 84pt horizontal inset, so JS-drawn headers/tab bars only get minimal compat; prefer native Stack/NativeTabs and audit every screen's left+right safe areas.
iPhone Duo (iOS 27, Apple's first foldable iPhone, shipped 2026-10-23) moves the status bar, tab bar and toolbar into a vertical RAIL on one edge in book poses, which needs an 84pt left OR right inset; the window also resizes live as the phone folds and in Split View. Native Expo Router Stack + NativeTabs get rail placement from the system; JS <Stack> headers and <TabList> get only minimal compatibility (they render classically inside the safe areas, with a large empty top inset when unfolded, and a rail-hosted TabList is intentionally unsupported) — another argument for native tabs. Other rules: wrap scroll-view CONTENT (not the scroll view) in SafeAreaView, read both left and right insets (the rail stays on the camera edge, including in RTL), never add a fixed tab-bar height to insets.bottom, and treat orientation locks as a preference on iOS 27. Requires SDK 58 + Xcode 27.1 (iOS 27.1 runtime and the Duo simulator). New APIs: ArrangementView (Expo UI) for split panes and a hinge-angle API.
Untangling Dialogs in React Router
You ship React Router — model modal dialogs as nested routes instead of local useState/useEffect; revalidation, view transitions, flash sessions, and exit animations then ride the router.
Models modal dialogs as nested routes in React Router 7 instead of local useState/useEffect — covering revalidation, view transitions, flash sessions, and exit animations. A durable routing pattern that generalizes beyond the example.
Meta-frameworks (full-stack React)
How we migrated lovable.dev away from Next.js and turned it into another Lovable app
You're weighing Next.js vs TanStack Start — Lovable's 910K-LOC migration reports lighter dev loops, fewer abstractions, fewer agent mistakes on Start; the cost is hand-tuned production bundling Next gives you out of the box.
The detailed writeup behind this entry's held Lovable fact, and the largest public Next→Start migration on record: lovable.dev (42M+ monthly uniques, ~400 routes, 910K+ lines of non-generated code) moved off Next.js/Vercel onto TanStack Start, with the mechanical code-move AI-assisted. The comparison section is the durable part, and it cuts both ways: Vite dev server at 10s start / 1.5GB RAM vs 70s / 8GB for Next 16.2+Turbopack on the same codebase (they note 16.3 claims up to 90% dev-server memory reduction); fewer server/client abstractions to hold in your head; agents make fewer framework mistakes on Start (their read: a small consistent training corpus beats a large self-contradictory one, because Next 12/14/16 answers pollute each other); BUT production bundling needed 'quite a bit of low-level configuration' where Next.js is efficient out of the box.
Who Owns the Tree? RSC as a Protocol, Not an Architecture
Argues RSC is a serialization protocol that enables both server-owned and client-owned trees, contrasting TanStack Start's inversion-of-control with Next.js's server-owned model.
The durable mental model for reasoning about RSC across frameworks.
React Server Components in TanStack
You ship TanStack Start — its RSC model is explicit (createServerFn, renderServerComponent) and still EXPERIMENTAL into early v1; this grounds what Start's RSC actually buys (use-case scoping, bundle-size results) before you lean on it.
First-principles RSC tutorial grounded in TanStack Start's explicit API (createServerFn, renderServerComponent), contrasted with Next.js's implicit model, with honest use-case scoping and bundle-size results.
Moving Railway's frontend off Next.js
You ship Next.js — Railway's 200+-route migration to Vite + TanStack Start (10min→<2min builds) is the concrete decision case for when a client-centric app outgrows a server-first meta-framework.
Migration postmortem — 200+ routes off Next.js onto Vite + TanStack Start (10min→<2min builds), with the reasoning for when a client-centric app outgrows a server-first meta-framework. A concrete decision case study.
You ship Next.js — 'use client' does NOT disable SSR; its real costs are bundle, hydration, and fetch waterfalls, and the server-component-as-prop technique keeps subtrees on the server.
The mental model for the use-client boundary — it does NOT disable SSR — plus its three real costs (bundle, hydration, fetch waterfalls), with measured comparisons and the server-component-as-prop technique. Durable RSC fundamentals.
Next.js 16.3: Instant Navigations (16.3 Preview)
How Next.js closes RSC's biggest UX gap — slow navigations — with Cache Components + a per-route Stream/Cache/Block choice and Partial Prefetching (one reusable per-route shell instead of a prefetch per link).
The durable mental model for server-driven-but-instant navigation; covers a facet the other RSC readings don't. Gated behind cacheComponents/partialPrefetching flags; 16.3 itself shipped stable 2026-08-03, the features stay opt-in.
We Stopped Using RSC on TanStack.com
You ship RSC — its clearest concrete benefit is keeping heavy server-only dependencies out of the browser; TanStack's reversal shows that when the dependency itself gets small, plain SSR keeps the performance win without the architecture cost.
The reversal of the adoption post this entry already cites in sources — read them as a pair. RSC did work: moving markdown + Shiki highlighting to the server cut client JS by ~153KB gzipped on blog/docs pages, took /blog/react-server-components from Lighthouse 52→74 and TBT 1,200ms→260ms. The reversal argument is that the win came from KEEPING A HUGE DEPENDENCY OUT OF THE BROWSER, not from the architecture: once they replaced the 358KiB markdown/highlighting stack with small purpose-built packages (~27KiB transferred, only ~18–19KiB more than the RSC version), plain SSR + server functions held the performance and the RSC machinery — bundler config, serialization boundaries, special files, runtime-boundary rules — was left with nothing to pay for. The honest context-key for 'how much RSC do you actually need': measure whether your case is a dependency problem before you make it an architecture problem.
Different Hydration and Rendering Strategies
A systematic map of the whole rendering spectrum — CSR, SSG, ISR, SSR, streaming SSR + Suspense, RSC, islands, signal-based fine-grained reactivity, Qwik resumability, and Next 16.3 instant navigations — organized around ONE durable question: the gap between when a page LOOKS ready (HTML painted) and when it WORKS (JS hydrated/executing).
Each strategy is a different trade on that window — ship less JS (islands/RSC), execute it faster (signals), or skip execution (resumability). The mental model that turns 'which meta-framework / rendering mode' into a reasoned choice instead of a checklist; the framing behind this entry's context-keys.
Project Speed: moving 10K+ restaurant websites from Next.js to Astro
Your Next.js site is mostly content with little interactivity — Owner moved 10K+ such sites to Astro islands and cut p75 LCP from 5.4s to 0.7s; weigh an islands framework before tuning Next.
Measured evidence for this entry's 'content/marketing site → Astro' clause at scale: 10,000+ content-heavy restaurant sites moved off a Next.js rendering stack onto Astro on Cloudflare, with React kept only for interactive islands (the ordering flow is one client:load island) and cached edge markup. Menu-page p75 LCP went from 5.4s to 0.7s and per-restaurant revenue rose more than 4%. Remix, TanStack Start and Gatsby were considered; Astro won on markup-by-default, islands with their own hydration boundaries, mixed prerendered/on-demand pages and the Cloudflare integration. The durable lesson is the selection axis: for mostly-static content sites the question is how much React ships to the browser, not which React meta-framework.
The AI cost of JavaScript frameworks
An agent (each framework's official MCP/skills installed) built the same Pokédex app 5 times in each of 12 frameworks against an accessibility-tree conformance suite, scored on API cost, lines of code and Lighthouse.
Median cost per run: Hono+htmx $2.67, Astro $2.76, Nuxt $2.82, Next.js $3.14, TanStack Start $3.54, React Router $3.81, SvelteKit $4.28, Angular $4.97 — the costliest runs came from frameworks newer than the model's training data or with large code size. The author flags the limits (one content-style app, stochastic agents, noisy Lighthouse). Read it as the first public method for agent cost-to-build as a selection axis, not as a ranking.
Launching the Framework Performance project
You're choosing or defending a meta-framework on performance: use e18e's same-app, per-release benchmarks (dev time and run time) rather than a framework's own numbers.
A neutral, continuously re-run benchmark suite across meta-frameworks (Next.js, TanStack Start, React Router, Astro, Nuxt, SvelteKit, Solid Start and more), tracked per major and minor release. DevTime: dependency count, node_modules size, install/build time, dev-server startup, polyfills, browser baseline, minimum Node. RunTime: CSR and SSR Lighthouse, initial KB, SSR throughput and load tests built from the SAME app. The neutral replacement for one-author benchmarks; it has already led to fixes in Nuxt, React and Solid. The durable value is the axes: framework cost is install/build/dev time as much as render speed.
Remix v3: Fast Pages, Thin Ecosystem
The first production-shaped hands-on behind the REMIX 3 note: the same Supabase-backed real-estate app built in Remix v3 and TanStack Start with Claude Code.
Performance did not separate them (default Lighthouse simulated throttling invented a 2.5x gap that DevTools throttling did not show); what Remix v3 lacked was ecosystem — no Vite plugins (Tailwind wired by hand), no Vitest, no shadcn equivalent, every React library off the table. Marmelab still recommends TanStack Start for most projects and Remix v3 only for small standalone ones.
Rebuilding the global town square from scratch
You're choosing between a meta-framework and assembling SSR yourself — X's rebuild shows Vite + Fastify + Relay streaming SSR at scale, and that hydration waits on every file in the entry's static import graph (754 with Rolldown's default chunking).
The largest public case of streaming React SSR assembled WITHOUT a meta-framework: x.com's new web app is Vite (Rolldown) + React streaming SSR/Suspense + Fastify + Relay, replacing a Redux/Relay client styled through React Native for Web, with a Base UI + Tailwind component library; route loaders start GraphQL requests while the server renders, and the three servers it ran for people, search crawlers and link previews became one. Over a slow connection the first post on a profile went from more than 22 seconds to 2.7s. The durable lessons are the startup ones: Rolldown's default chunking put 754 files in the signed-in entry's static import graph, and the render-blocking stylesheet competed with JavaScript for bandwidth. (Live URL 403s to scripted fetches; content verified via Wayback snapshot 2026-11-15.)
Forms & validation
You ship no form library — often right: React 19 native actions + Zod handle simple forms; a library earns its keep at multi-step wizards, async validation, and field-level re-render isolation. This walks the decision.
The decision arc of this entry in interactive form: a four-jobs mental model (capture, verify, recover, commit), then three archetypes — a React 19 useActionState + server-action + Zod form with no client form lib, a TanStack Form multi-step wizard (schema composition, AbortController async checks), and a field-array editable table with row-level re-render isolation — closing with when native React 19 suffices vs when a client library earns its keep. Covers the native-actions end of the spectrum the other reading here doesn't.
React Hook Form Avoids State. TanStack Form Scopes It.
You ship React Hook Form or TanStack Form — the split is where keystrokes land: RHF keeps them out of React's render loop, TanStack Form stores them with narrow subscriptions. Both stay fast; a working RHF form is rarely worth rewriting.
The mechanism behind this entry's RHF-vs-TanStack-Form choice, which the option rows only assert. RHF starts from REGISTERED inputs — the browser holds the value, so ordinary keystrokes never enter React's render loop — and adds React subscriptions only where other UI needs form state. TanStack Form starts from fields backed by a store: inputs are controlled, but only the field and its subscribers update. Both stay fast; they differ in where the default lands, and the post walks the specific code paths where that shows (field binding, watch/subscribe, arrays, async validation). Its own conclusion is the conservative one — a working RHF form is rarely worth rewriting. Examples checked against react-hook-form 7.82.0 and @tanstack/react-form 1.33.1.
One core, six frameworks, zero runtime abstraction
Shows build-time framework abstraction (a tiny core swapped by a bundler plugin) instead of a runtime adapter layer, so form state uses each framework's native signals.
A generalizable library-design pattern reframing portability vs integration.
Authentication & identity — sessions, OAuth, managed vs self-hosted
The free, open, community-maintained guideline for implementing auth from first principles — server-side tokens, sessions, password auth + reset, email verification, OAuth, MFA, WebAuthn, CSRF, open redirects — meant to be read alongside the OWASP cheat sheets.
THE canonical reference when you hand-roll any part of auth instead of adopting a library above; its author sunset the Lucia auth library INTO this book, the lesson being that auth is a design problem more than a dependency.
Sign in with Google for React Native
You ship Google sign-in on Android — the legacy GoogleSignInClient API is deprecated and will be removed; audit whether your RN library targets Credential Manager, and remember the library only gets you the credential, not session handling.
Carries a PLATFORM deprecation this entry had no home for: Android's legacy GoogleSignInClient (Google Play services) is deprecated and slated for removal, with Credential Manager as the replacement — and much of the existing RN Google-sign-in field still targets the old API, so it misses Credential Manager's bottom-sheet flow, automatic sign-in and structured error handling. The post introduces the authors' own @thoughtbot/react-native-social-auth (Credential Manager on Android, Google Sign-In SDK 8+ on iOS with Firebase App Check and custom nonces, TypeScript-first, Expo config plugin), so treat the library pick as vendor advocacy; the deprecation and the capability checklist are the durable part. It stops at obtaining the credential — session/token handling is still yours (Keychain via RB-E-STORAGE, never AsyncStorage).
Networking & HTTP client layer
react-native-nitro-fetch — architecture & benchmarks
You ship react-native-nitro-fetch — it swaps the fetch engine (Cronet/URLSession: HTTP/3+QUIC, Brotli, disk cache, prefetch, worklet parsing) behind the same API; benchmarks are vendor-run (~23% on their harness), so measure your own hot path.
The README doubles as the layer's best explainer: what actually backs fetch on each platform (Cronet vs URLSession), what HTTP/3+QUIC/Brotli/disk-cache buy you, prefetch-before-navigation, and worklet-side parsing — with their benchmark methodology. Read it to understand the layer even if you keep built-in fetch.
Speeding up Expensify's networking with NitroFetch
You use react-native-nitro-fetch — Expensify's rollout is the calibration point: 15-30% faster requests, with the startup win coming from prefetch-before-JS (account-scoped keys, pre-runtime token refresh); on Android Cronet you own cert pinning.
The first at-scale production receipt for the fetch-engine swap (vendor-written — Margelo builds nitro-fetch — but the numbers are Expensify's app): global replacement of fetch/Headers/Request/Response gave 15-30% faster requests; prefetching the single critical startup request (with token refresh BEFORE the JS runtime loads, account-scoped prefetch keys to prevent cross-account reuse) cut P50 startup 1,676→1,409ms on iOS and 3,223→2,573ms on Android. Also documents the sharp edge: Cronet needed a custom certificate-pinning implementation. Grounds this entry's 'reach for nitro-fetch when measured' clause with what MEASURED wins look like.
File uploads — pickers, drop zones, chunking, resumability
You upload direct-to-S3/R2/MinIO — pick ONE signing mode (client SigV4, your own signer, or server-side) instead of assembling callbacks, and check yours against the hard parts: retry backoff, credential expiry, offline detection, multipart pause/resume races.
Worth reading even if you never install Uppy, because the @uppy/aws-s3 rewrite is a case study in the failure mode that makes direct-to-S3 uploads flaky. The old plugin exposed up to eight callbacks (getUploadParameters, signPart, createMultipartUpload, listParts, abortMultipartUpload, completeMultipartUpload and friends) where WHICH subset you needed depended on whether you were doing multipart, whether Companion was involved, and whether you signed on the client — with nothing telling you up front, so people wired plausible-looking combinations that quietly did not work. The team's own diagnosis is the transferable part: the problem was the SHAPE of the API, not any individual bug in it. The replacement is three mutually exclusive signing modes — sign on the client with SigV4, bring your own signer, or let a server sign — and you pick exactly one. Two consequences beyond Uppy: the plugin now speaks to any S3-compatible service (R2, MinIO, DigitalOcean Spaces) with no provider-specific code, and their proxy is no longer required in the data path. The reliability bugs it closed name the hard parts of resumable upload precisely — retries with backoff, credential expiry, offline detection, and pause/resume races during multipart — which is a good checklist against your own implementation if you hand-rolled one. They also moved from mocks to testing against a real MinIO instance in CI, which is how several of those were found.
Sharing code across React (web) & React Native
How Does KMP with SwiftUI Scale on iOS?
The best-measured statement of the ALTERNATIVE this entry's axis implies — share the logic layer, keep the UI native — taken to production scale on Kotlin Multiplatform: ~750 Kotlin and ~700 Swift files, all figures measured wall-clock on an M4 Pro with Xcode 26.5 / Kotlin 2.4.0 / Gradle 9.6.1 rather than estimated.
Two structural facts are the transferable part. (1) iOS consumes the shared layer as ONE linked framework no matter how many Gradle modules it is split into, because every linked KMP framework embeds its own copy of the Kotlin/Native runtime, memory manager and GC — ship two and you get two uncoordinated collectors in one process, with Kotlin objects crossing a boundary neither manages, so the single umbrella framework is the SAFE shape and its link step is the price of that safety, not a tooling accident. 'Just split the framework' is therefore not a free lever. (2) The decision he rates highest is that Swift feature packages compile against Swift CONTRACTS (closure-struct protocols), not against the Kotlin framework — only a thin SharedBridge imports it — which is the same insulation principle this entry applies to platform-extension files. Useful whether or not you would pick KMP: it prices the seam that any share-the-logic architecture has to own.
use dom — incrementally migrating web UI to native with React
You ship react-native-web — for the opposite direction, reusing web UI inside a native app, Expo DOM Components (`use dom`) are the incremental migration path, component by component.
Deep-dive on Expo DOM Components and the `use dom` directive — run real web UI inside a native app and migrate to native views component-by-component; covers the Metro bundling, offline support, and honest WebView trade-offs. The primary source for the incremental-reuse path.
AI-Assisted React Native Migration for TV: Lessons From Zattoo
TV/cross-platform RN case study: share until a platform gives a reason to split, telemetry-driven perf, team reorg, and a deflated, realistic account of AI's role.
A concrete companion to this entry's share-by-layer thesis.
How we rebuilt the Shopify app in 12 weeks
You're weighing a rewrite off React Native with agents: budget for the system around the code first. Shopify needed a live reference app, checkpoint gates, cross-platform CI divergence checks and paired review to make 12 weeks work.
The cost-and-machinery account behind the SHOPIFY REBUILD note: ~30 engineers in pairs, 12 weeks, 300+ screens moved from React Native to Swift/Kotlin with agents writing most of the code. The transferable findings are about the system around the agents: written specs went stale and the live legacy app became the spec; consistency across platforms was enforced by CI rather than idiom; the bottleneck moved from writing code to review, validation and emulator capacity.
Migrating from React Native to Swift and Kotlin, One Feature at a Time – the Gobi Story
You're planning to leave React Native — migrate feature by feature behind native hosts with RN 'islands' (AppRegistry roots in one lazy runtime) and a fixed navigation contract, and expect to lose JS OTA for migrated features.
The incremental-exit playbook the Shopify thread lacks: start by moving the hot paths native (sheets, then map markers — 120 FPS came from moving camera-driven marker generation out of JS), introduce native hosts, keep unmigrated features running as React Native 'islands' (separate AppRegistry roots in one lazily-started JS runtime — reverse brownfield), fix a navigation contract both platforms implement, and drop the OTA path because new client code now needs a build. ~11 weeks for the main transition; agents did small reviewed tasks, checking visual parity with screenshot diffs.
Rebuilding the global town square from scratch
You run react-native-web on a web-only app that no longer shares UI with a native codebase: X's rebuild shows the payoff of moving to a plain web component stack.
X's web app moved off React Native for Web, Redux, styled components and Flow onto Vite, React, Fastify, Relay and a Base UI + Tailwind component library, with streaming SSR and one server for people, crawlers and link previews; slow-connection first post went from 23.9 s to 2.7 s. A large-scale datapoint that RN-Web stops paying for itself once web UI is no longer shared with mobile. (Live URL 403s to scripted fetches; content verified via Wayback snapshot 2026-11-15.)
Desktop apps & web-to-native shells (packaging a React web app)
Electron to PWA: There and Back Again
You're choosing a PWA over a desktop shell: file associations are blocked by open WICG bugs, tray/dock menus and global hotkeys are missing, Cmd+S/Cmd+Q belong to the browser, and Safari differs — fine for a website, not for a real desktop app.
Six months moving an EPUB editor (Byte Binding) from Electron to a PWA and back. The PWA won on size, startup and updates, but lost on desktop basics: file associations and launch parameters blocked by open WICG bugs, APIs that differ or are missing in Safari, an installed PWA always opening in the browser it came from, no custom tray/dock menus or global hotkeys, Cmd+S/Cmd+Q reserved by the browser, no 'Open with' entry, and a hard-to-find install icon. His verdict: a PWA is a good addition to a website, not a desktop-app platform.
The Conductor Rewrite: what they changed to make it fast
You ship React in a Tauri shell — the Conductor postmortem's wins were structural (SQLite local-first, stable refs killing re-render cascades, virtualization), not memoization patches; fix root causes.
A React + Tauri desktop performance postmortem — SQLite local-first, TanStack Router structural sharing (stable refs killing re-render cascades), virtualization — fixing root causes instead of papering over with useMemo. Directly relevant to React-on-desktop.
A Technical Deep Dive Into the New Raycast
How Raycast ships one React + TypeScript codebase to both macOS and Windows via native shells (Swift/C#) plus WebKit — IPC design, memory breakdown, and concrete WebKit workarounds.
A durable model for cross-platform desktop on React without Electron.