ML
Topic

React

React for engineers who have to reason about it under pressure — reconciliation and keys, the useEffect mental model, when memoization actually pays, stale closures, context re-renders, and the Server vs Client Component boundary. The mechanisms behind the interview questions.

6 articles · updated regularly

React
May 24, 202610 min

Stale Closures: Why Your State Is "Old"

Every React render captures its own props, state, and handlers in a closure — and that snapshot is exactly why your setInterval, event listener, or effect reads "old" values.

ReactHooks
Read
React
May 16, 202611 min

A Mental Model for useEffect

Effects synchronize your component with an external system; most of what you reach for them isn't a synchronization problem at all.

ReactHooks
Read