1. Home
  2. Blog
  3. React & Next.js

React & Next.js

Practical guides to React and Next.js: Server Components, Server Actions and patterns for faster apps.

Flat illustration of a browser page built from blocks: a gray static header and hero, a card outlined in orange-red with a clock badge for cached content, and a dashed empty block for content that streams in, joined by an arrow to a dark code editor with one highlighted line and a tag.
React & Next.js 18 min read

Next.js use cache: How Cache Components Work in 2026

How Next.js use cache works with Cache Components: cacheLife profiles, revalidateTag vs updateTag, WordPress webhooks and the Nov 2026 security patches.

Flat vector illustration of a browser window swapping one page panel for another, with a keyboard focus ring in orange-red jumping from an old navigation link to the heading bar of the new page
React & Next.js 15 min read

SPA Focus Management: How to Fix Route Changes in React and Next.js

Client-side navigation in React and Next.js doesn’t reset focus or announce the new page. Here’s how SPA focus management works: focusing the h1 with tabIndex -1, what the Next.js route announcer does and doesn’t do, aria-live regions, skip links and testing with Playwright.

Flat vector illustration of a server-rendered page layout and a browser-rendered copy side by side, lined up like two puzzle halves, with one mismatched tile highlighted in orange-red where they fail to fit
React & Next.js 16 min read

React Hydration Error in Next.js: What Causes It and How to Fix Each One

A hydration error means the browser’s first render didn’t match the server HTML. Here’s what causes it in React and Next.js, from dates and typeof window to localStorage and bad HTML nesting, and the fix I use for each one.

Flat vector illustration of a browser window with a broken unstyled login page beside a dark code panel showing a matcher config, orange accent arrows routing requests around static assets
React & Next.js 12 min read

Next.js Middleware and Proxy: Auth Redirects, Rewrites, and Matchers Done Right

How I use Next.js Middleware (Proxy in Next.js 16) for auth redirects, safe return paths, rewrites, matchers, cookies and headers – without breaking CSS.

Abstract vector form submitting to a server action without a separate API route card, Next.js App Router mutation metaphor
React & Next.js 13 min read

React Server Actions in 2026: Forms and Mutations Without Extra API Routes

Practical Next.js Server Actions for client sites in 2026: progressive forms, useActionState, validation, auth cookies, revalidatePath/Tag, CSRF, and when to use Route Handlers instead.

Server rendering React components and sending lightweight UI to the browser while heavy JavaScript bundles are filtered out
React & Next.js 11 min read

Next.js Server Components in 2026: Fetch Less on the Client, Ship Faster Pages

Learn Next.js Server Components in 2026 – App Router RSC defaults, async fetches, cache and revalidate patterns, when to use use client, Suspense streaming, and common mistakes that bloat your bundle.

Up and down to move, Enter to go, Esc to close

Before you go

Planning a website launch?

Read the checks I run before any site goes live: speed, SEO, forms, accessibility and backups.

Read the launch checklist Ask on WhatsApp