Skip to content

Frontend & UI

#react

20 posts tagged #react on DiCodeWeb, from fundamentals to production, newest first.

20 postsUpdated Sep 8, 2026

Posts

Accessible Custom Widgets in React: ARIA Patterns That Actually Work

When native elements run out, ARIA is a contract you have to keep. The accessibility tree and name computation, roving tabindex vs aria-activedescendant, a combobox and tabs built step by step, live regions that really announce, focus on route changes, and how to test it all.

Frontend & UI20 min

Server State Is a Cache, Not State: TanStack Query v5 in Depth

Data from the server isn't yours — you only hold a copy with an expiry date. This post goes deep on TanStack Query v5 through the lens of caching: query key design, staleTime and gcTime, invalidation, optimistic updates with rollback, Suspense, hydration with the Next.js App Router, infinite queries, and when not to use it.

Frontend & UI17 min

The View Transitions API: Page Transitions and Shared Elements Without a Library

How View Transitions snapshot the page and build a pseudo-element tree, startViewTransition in an SPA, transitions between documents, view-transition-name, view-transition-class and types, a list-to-detail shared element, reduced motion, performance traps, and using React's ViewTransition component in Next.js 16.

Frontend & UI8 min

The Event Loop, Microtasks and Rendering: Why Your UI Freezes

A correct mental model of the browser event loop — tasks, microtasks, frames — tested with predict-the-output puzzles, then used to explain why UIs freeze and how to chunk work, yield to the main thread and move heavy work to a Web Worker.

Performance14 min

List Virtualization from Scratch: Rendering 100,000 Rows Smoothly

Building a virtual list in React + TypeScript by hand: windowing math with real numbers, overscan, variable heights with prefix sums and binary search, measuring with ResizeObserver, preventing scroll jumps, accessibility — and when not to virtualize at all.

Performance16 min

React Compiler in Practice: Adopting It in a Codebase That Already Ships

What React Compiler actually does, the Rules of React it relies on, the ESLint plugin, incremental rollout with annotation mode and "use no memo", what to do with existing useMemo/useCallback, how to verify it works, common bailouts, third-party libraries and build cost.

Performance9 min

Forms in React 19: action, useActionState, useFormStatus and Server Actions

React 19 brings forms closer to plain HTML: the action prop, pending state, optimistic updates and Server Actions. This post walks through how I build a complete signup form — validated on both sides, with per-field errors, accessible, and working even before JavaScript loads.

Frontend & UI7 min

State Machines for UI: Making Impossible States Impossible

Why isLoading, isError and data living side by side breed bugs, how to model UI as states and events, a typed useReducer state machine for a submit flow, and when a statechart library is worth it.

Systems & architecture6 min
All tags