Tag: Hooks
4 posts
-
React from Usage to Internals: Fiber Reconciliation, Diffing, Hooks and Concurrent Rendering
React from everyday APIs to internals: Fiber reconciliation, key-based diffing, hooks on fibers, automatic batching, transitions, Suspense, streaming SSR and what React 19 changed.
-
Atomic State in React with Jotai: Derived, Async and Write-Only Atoms, Families and Provider Scope
Managing React state with Jotai's atomic model: primitive, derived, async and write-only atoms, atom families, utilities, a todo app, and provider scoping trade-offs.
-
React Hooks Pitfalls: Stale Closures, Effect Loops, Fetch Races and Useless Memoization
Why hook bugs happen: stale closures, effect loops, fetch races, and memoization that does nothing, explained through the render model, with fixes and the Strict Mode behavior that exposes them.
-
React useMemo and useCallback: When to Use Them
When useMemo and useCallback actually pay off in React: expensive computations, stable references for memo children, effects and Context values, dependency-array pitfalls, and verifying with the Profiler.