React patterns, hooks, rendering behaviour and performance — with the reasoning behind each recommendation.
A diagnosis-first guide to React performance — how to find the real bottleneck with the Profiler, and the five fixes that account for most real-world wins.
The TweakPad Team
What React does with keys during reconciliation, the concrete bugs index keys cause, and how to pick a key when your data has no id.
The TweakPad Team
What Server Components actually are, the client boundary, what you can and cannot pass across it, and how to decide which components need "use client".
The TweakPad Team
Memoisation in React has a real price. Here is how to tell which of the three legitimate cases you are in, and why most useMemo calls are net negative.
The TweakPad Team
useState, useEffect, useRef, useReducer and the newer hooks — what each is for, the dependency-array rules, and the mistakes that cause infinite loops.
The TweakPad Team