This page is an overview of how the React documentation is structured, which is important context for where data fetching hooks fit in.
React’s core reference is divided into several major areas:
-
React (core): Includes Hooks, Components, APIs, and Directives. The Hooks section is where you find functions that let components use React features (for example, state, context, or, in other parts of the docs, data fetching patterns). These hooks are environment-agnostic.
-
React DOM: Focused on web applications that run in the browser. It has its own Hooks section for DOM-specific hooks, plus Components (HTML/SVG tags) and APIs split into client, server, and static rendering utilities. Any browser-only data fetching or rendering patterns would be documented here.
-
React Compiler: A build-time optimization tool that can automatically memoize components and values. This matters for data fetching hooks because compiler-aware, pure components are easier to optimize and avoid unnecessary re-renders.
-
ESLint Plugin React Hooks: Enforces the Rules of Hooks, such as calling hooks only at the top level of components and custom hooks. This is crucial for data fetching hooks, which must obey these rules to behave predictably.
-
Rules of React: Emphasize that components and hooks must be pure and that React controls when they are called. All data fetching hooks must be designed around these rules, typically by triggering side effects (like network requests) in the appropriate hook APIs.
Finally, Legacy APIs are listed as still exported but discouraged for new code, signaling that modern patterns—especially hook-based ones—are preferred for tasks like data fetching.






