
The CSS :has() Selector: A Practical Guide
How the :has() pseudo-class finally gives CSS a parent selector, and the patterns, pitfalls and performance trade-offs that come with it.
Categories
UI & user experience · 40 articles · Page 1 of 4

How the :has() pseudo-class finally gives CSS a parent selector, and the patterns, pitfalls and performance trade-offs that come with it.

CSS anchor positioning lets you position tooltips, popovers, and menus relative to any element without a JavaScript positioning library.

Server Actions bring form handling and mutations back to the server in Next.js — how to use them well, what to avoid and which patterns actually scale.

Replace boolean flag spaghetti with finite state machines: a TypeScript-first approach to UI states that makes impossible states impossible by construction.

Design tokens, component APIs, and the organizational patterns that make a design system a force multiplier instead of a maintenance burden.

Practical React performance techniques — memoization, virtualization, code splitting and profiling — with real before/after benchmarks and their tradeoffs.

A practical guide to choosing the right state management approach in modern React apps — useState, Zustand, React Query — and the reasoning behind each.

How to structure CSS in large applications — design tokens, component patterns, utility classes, and the principles that prevent stylesheet entropy over time.

Implement optimistic UI updates that feel instant by showing expected state immediately, reconciling with the server and rolling back when a mutation fails.

The mental model for choosing between Server and Client Components in Next.js: the rendering boundary, serialization limits and composition patterns.

Build React components that are keyboard navigable, screen reader friendly and WCAG compliant by default, using ARIA, focus management and semantics.

A grounded look at where WebAssembly delivers real value: image processing, cryptography, data transformation — and when JavaScript is still better.