Arpit Mishra
Fullstack AI Developer
Socials
React, Next.js, UI engineering
Server components, hydration, rendering and caching
Two small functions that solve the same problem — a high-frequency event firing too often — in opposite ways. Here's how to write both from scratch.
How a browser turns bytes into pixels, what blocks it along the way, and how LCP, CLS, and INP measure whether the result actually feels fast.
Flexbox and Grid solve different problems, not the same problem twice — here's the mental model that makes the choice obvious.
Most state should never leave the component that owns it. A practical guide to knowing when it should, and which tool to reach for once it does.
Why the Rules of Hooks exist, what the useEffect dependency array actually means, and how to stop shipping stale-closure bugs.
Why React diffs an in-memory tree instead of touching the real DOM directly, and how keys and Fiber make that diff fast, correct, and interruptible.
Why a for-loop with setTimeout logs the wrong number, and what that bug reveals about lexical scope, closures, and memory.
Why a Promise.then always beats a setTimeout(fn, 0) — the call stack, the microtask queue, and the macrotask queue, explained in the order they actually run.