React

Jun 29
The Tyranny of Tiny Modules

The Tyranny of Tiny Modules

Modularity is not a numbers game. A 300-line component with a clean flow beats ten shallow ones across folders. Barrels bloat bundles and hide cycles. Write for brains, not style cops: minimize hops, keep related logic close, abstract when it’s earned.
15 min read
Jun 22
Cutting Redundant Data Fetches with React’s `cache` in React 19

Cutting Redundant Data Fetches with React’s `cache` in React 19

React 19’s cache memoizes server calls per request. Wrap a fetch or DB query, call it from multiple server components, and React runs it once. Fewer duplicate hits, faster pages, consistent data. The cache clears after render. Use it in Next.js 15 with RSC.
7 min read
Jun 03
Fresh vs. Next.js 15

Fresh vs. Next.js 15

I tried Fresh after another hydration bug. It shipped HTML, woke just the interactive islands, and my laptop sighed in relief. Next 15 felt heavier but battle-tested. My take: use Fresh for speed and clarity, Next when you need every plugin and playbook.
14 min read
May 12
Exponential Backoff in Modern JavaScript

Exponential Backoff in Modern JavaScript

Stop hammering a sick API. Exponential backoff—with jitter and caps—turns retries into resilience. I show how to wire it in React/Next.js (client + Route Handlers) and Fastify, when to retry vs bail, and how to keep users happy in 2025.
13 min read
May 12
React 19’s New Hooks: Practical Relief or Added Complexity?

React 19’s New Hooks: Practical Relief or Added Complexity?

React 19: use() for async data, form actions with useFormStatus/useActionState, useOptimistic for snappy updates, and async transitions. Fewer effects and form libs—cleaner patterns for forms, fetching, and UX.
16 min read
May 03
Are React Server Components Improving Your Apps?

Are React Server Components Improving Your Apps?

React Server Components (RSCs) can deliver real performance wins. One team rebuilt their Next.js site with RSCs and achieved a 62 % drop in JavaScript bundle size and a 63 % boost in Google’s Speed Index. Less client‑side React logic means faster first paints.
9 min read
Aug 04
Understanding Immutability in JavaScript

Understanding Immutability in JavaScript

Immutability in JavaScript means data stays unchanged after creation. It improves predictability, debugging, and performance, and helps avoid tricky state bugs. With tools like React, Redux Toolkit, and TypeScript’s readonly features, it becomes easier to write safer, more maintainable code.
10 min read