
Testing a Packed React Library in Its Real Consumers
Test a packed React library in separate consumer apps to catch duplicate React, missing declarations, broken exports, lost styles, and unsupported peers.
Articles
React makes it easy to start with a component; the harder work is deciding how that component should behave as the application grows. These articles follow rendering and state across component and API boundaries, with an eye on the trade‑offs that keep a long‑lived codebase understandable.

Test a packed React library in separate consumer apps to catch duplicate React, missing declarations, broken exports, lost styles, and unsupported peers.

Test overlapping React saves with separate request and response order. Keep optimistic state separate from accepted writes, conflicts, and uncertain outcomes.

Higher‑Order Components (HOCs) in React wrap components to enhance functionality. Here, I explore how HOCs work, common use cases, and when to use them.

React's reconciliation algorithm updates the UI by comparing the virtual DOM with the previous state. I explore how it works and why it improves performance.

A retrospective on React component APIs before hooks settled, covering render props, higher‑order components, context, classes, and migration judgement.

styled-componentsUse transient props in styled-components to keep styling‑only props out of the DOM, clean React output, and support safer component migration work.

Test JSX‑driven content in Cypress by comparing rendered output, extracting text, handling order, avoiding brittle assumptions, and respecting performance.

Add seeded randomisation to an SSR Gatsby project, keeping content order deterministic across builds whilst still rotating destination‑style content.

Choose where React state should live, comparing local state, context, URL state, server data, cache state, mirrored values, and ownership questions.



Use React Suspense carefully with loading boundaries, error boundaries, streaming, fallback design, transitions, and trade‑offs in real interfaces.

How to build accessible modals, drawers, and popovers in React, with focus management, portals, dismissal rules, and the semantics each pattern needs.

useTransition and useDeferredValue to Keep React Interfaces ResponsiveuseTransition and useDeferredValue explained with search, filtering, pending states, and how to keep React interfaces responsive under heavy work.

setTimeout() in JavaScriptAn exploration of JavaScript's setTimeout function. Understand its nuances in component lifecycles, and learn effective timing strategies using it.

Keep private TanStack Query data inside the right Next.js request. Test overlapping users, hydration freshness, failed queries, and account changes.

useEffect HookUnderstand the empty dependency array in React's useEffect, including after‑commit setup, cleanup, remounts, development checks and reactive dependencies.

A tour of commonly misunderstood JavaScript features, from sort(), slice(), splice(), split(), Math.random(), parseInt(), isNaN(), typeof, and more.