Skip to main content

React Handbook

Docs target: React 19.2
Latest stable package verified: React 19.2.8
Last verified: 2026-07-26

A practical React handbook built to move from zero React knowledge โ†’ real applications โ†’ modern React โ†’ advanced engineering โ†’ senior-level decision making.

This is not a list of APIs to memorise. The goal is to understand how React behaves, why its APIs exist, how to choose between competing approaches, how to debug failures, and how production architecture changes the trade-offs.

Start with the version policy when you want to know which React release the handbook targets, or use the learning roadmap to see the complete zero-to-senior curriculum.

The core mental modelโ€‹

React becomes easier when you stop thinking of it as a collection of Hooks and start with one idea:

React's core render loopCurrent inputs are used to calculate UI; React coordinates only the host changes that are needed.
Current inputs

props + state + context

Component calculates UI

Function components describe the next interface for this render.

React coordinates rendering

React compares identities and determines what host work is necessary.

Necessary changes are committed

DOM or other host changes happen only where the result actually differs.

Browser displays the result

The browser paints the committed interface.

From there, the handbook builds the models for state snapshots, identity, Effects, refs, Context, Suspense, transitions, server rendering, and React internals.

Learning pathโ€‹

Zero โ†’ senior React learning pathBuild mental models first, then layer production architecture on top.
1JavaScript for React
2React mental model
3JSX + components
4Rendering + events + state
5Forms + lists + keys
6Effects + refs + custom Hooks
7Context + reducers + state architecture
8Modern React 19+
9Suspense + concurrency
10SSR + Server Components
11Compiler + Rules of React
12TypeScript + testing + accessibility
13Performance + architecture
14Internals + senior decisions

What this handbook coversโ€‹

Foundationโ€‹

  • JavaScript concepts that React code relies on;
  • what React is and the problem it solves;
  • declarative UI and UI as a function of state;
  • createRoot and the client entry point;
  • JSX, React elements, components, props, state, and events;
  • render, commit, and browser paint;
  • lists, keys, identity, and state preservation;
  • forms and controlled/uncontrolled inputs.

Hooks and state architectureโ€‹

  • state ownership and lifting state;
  • useState and useReducer;
  • Context and provider design;
  • Effects as synchronization with external systems;
  • dependency reasoning, cleanup, race conditions, and stale closures;
  • refs and imperative escape hatches;
  • custom Hook API design;
  • every current stable built-in Hook.

Modern Reactโ€‹

The handbook deliberately teaches modern React rather than ending at React 18-era patterns.

Topics include:

  • Actions;
  • useActionState;
  • useOptimistic;
  • useFormStatus;
  • use;
  • ref as a prop;
  • modern Context provider syntax;
  • <Activity>;
  • useEffectEvent;
  • transitions and deferred values;
  • Suspense;
  • React Compiler 1.0;
  • current React DOM resource and server APIs.

Version-specific material is labelled, and Canary/Experimental APIs are never silently presented as stable.

Production Reactโ€‹

  • TypeScript;
  • testing strategy and React Testing Library;
  • accessibility;
  • frontend security;
  • authentication and authorization boundaries;
  • performance profiling before optimization;
  • React DevTools Profiler and Performance Tracks;
  • feature architecture and dependency direction;
  • design systems;
  • deployment, observability, and rollback thinking.

Advanced and senior topicsโ€‹

  • component API design and composition;
  • state ownership and boundaries;
  • reconciliation and identity;
  • Suspense and concurrent rendering concepts;
  • React Fiber, scheduling, priorities, and update queues at a conceptual level;
  • server rendering, hydration, streaming, and Server Components;
  • framework vs React-core responsibilities;
  • architecture trade-offs and engineering decisions;
  • public React contracts vs unstable implementation details.

React core vs ecosystemโ€‹

React is the UI library. Many production applications also use tools around it.

React core vs ecosystemKnow which guarantees come from React and which come from surrounding application tooling.
React core

Components ยท Hooks ยท Context ยท Suspense ยท transitions ยท React DOM APIs

Ecosystem / application tooling

Vite ยท React Router ยท TanStack Query ยท Redux Toolkit ยท Zustand ยท React Hook Form ยท frameworks

The handbook labels ecosystem libraries clearly so you learn what React itself guarantees and what comes from surrounding tools.

Modern React vs legacy Reactโ€‹

New chapters use function components and current stable APIs as the default model.

Older patterns still matter when maintaining existing applications, so the handbook later covers them as LEGACY / MAINTENANCE KNOWLEDGE, including:

  • class components and lifecycle methods;
  • HOCs and render props in historical context;
  • forwardRef as pre-React-19 ref architecture;
  • removed ReactDOM.render / ReactDOM.hydrate APIs;
  • old Context and other removed APIs.

Legacy material is useful knowledge, but it should not be confused with the recommended starting point for new React 19 code.

How to study each topicโ€‹

Most important chapters follow the same reasoning sequence:

How to study a React topicMove from definition to production reasoning instead of memorising syntax in isolation.
1What?
2Why?
3Mental model
4Syntax
5Small example
6Behaviour
7Real example
8Mistakes
9Debugging
10Trade-offs
11Production pattern
12Exercise
13Interview reasoning
  1. What is it? โ€” establish the simplest accurate model.
  2. Why does it exist? โ€” understand the problem being solved.
  3. Mental model โ€” visualize what React or JavaScript is doing.
  4. Basic syntax โ€” learn the smallest useful form.
  5. Step-by-step behavior โ€” reason through the code.
  6. Real example โ€” apply it to an application problem.
  7. Common mistakes โ€” understand failure modes.
  8. Debugging โ€” move from symptom to cause.
  9. Best practices and trade-offs โ€” understand when the rule applies.
  10. Production pattern โ€” see how decisions change at scale.
  11. Exercise โ€” practise the idea instead of only reading it.
  12. Interview reasoning โ€” explain behavior, not definitions.
The goal

Don't aim to remember every React API. Aim to understand React well enough that unfamiliar APIs make sense when you encounter them.

How to startโ€‹

Where should I begin?
Arrays, objects, destructuring, closures, async code still feel shakyStart with JavaScript for React
Those JavaScript concepts already feel comfortableContinue with What is React?

If JavaScript arrays, objects, destructuring, immutability, closures, and async code are not yet comfortable, begin with JavaScript for React.

If those concepts are already familiar, continue with What is React?.

Handbook maintenanceโ€‹

The handbook has an explicit official API coverage audit. Whenever React publishes a new stable release, the version page and audit should be reviewed before version-specific claims are updated elsewhere.

Referencesโ€‹