# React 19 Hooks, Actions, Server Components & Reference > Official React 19 reference covering Actions, useActionState, useOptimistic, use(), ref-as-prop, and Hook rules. ## Corpus Summary - Canonical Space URL: https://voxell.ai/p/react-docs - Documents indexed: 4 (12 passages, 9.9 KB) - Citation Readiness (Aggarwal GEO): 62/100 (stat_density=0.00, self_contained=0.92) - Full machine-readable corpus bundle: https://voxell.ai/s/react-docs/llms-full.txt ## Agent & MCP Integration (Zero API Key Required) Connect any MCP client or autonomous agent directly via Streamable HTTP: - Endpoint: `POST https://voxell.ai/s/react-docs/mcp` - Tools: `search_verified_docs` (grounded passage search), `ask_cited_answer` (cited synthesis) ```bash curl -sS -X POST https://voxell.ai/s/react-docs/mcp \ -H 'Content-Type: application/json' \ -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_verified_docs","arguments":{"query":"key facts and specifications","top_k":5}}}' ``` ## Document & Section Map - **official_ref_2_raw_githubusercontent_com_fa.md** (6 passages, 5.3 KB) - Section: raw.githubusercontent.com/facebook/react/main/README.md - Section: [React](https://react.dev/) · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/react/react/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![(Runtime) Build and Test](https://github.com/react/react/actions/workflows/runtime_build_and_test.yml/badge.svg)](https://github.com/react/react/actions/workflows/runtime_build_and_test.yml) [![(Compiler) TypeScript](https://github.com/react/react/actions/workflows/compiler_typescript.yml/badge.svg?branch=main)](https://github.com/react/react/actions/workflows/compiler_typescript.yml) [![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://legacy.reactjs.org/docs/how-to-contribute.html#your-first-pull-request) - Section: Installation - Section: Documentation - Section: Examples - **official_ref_1_react_dev_reference_react.md** (4 passages, 3.4 KB) - Section: react.dev/reference/react - Section: React DOM {/*react-dom*/} - Section: React Compiler {/*react-compiler*/} - Section: Rules of React {/*rules-of-react*/} - **react-19-hooks-and-actions.md** (1 passages, 708 B) - Section: React 19 Actions, useActionState, and useOptimistic - **react-19-ref-prop-and-effects.md** (1 passages, 498 B) - Section: React 19 Ref as a Prop & Effect Discipline ## Verified Sample Citations (High Fact Density) - **[react-19-ref-prop-and-effects.md #0]**: # React 19 Ref as a Prop & Effect Discipline In React 19, function components accept `ref` directly in their props object (`function TextInput({ placeholder, ref }) { return ; }`). `forwardRef` is no longer required for new components. Ref callbacks may also return a cleanup function (`ref={(node) => { ...; ret... - **[official_ref_1_react_dev_reference_react.md #0]**: # react.dev/reference/react Source: https://react.dev/reference/react --- title: React Reference Overview --- This section provides detailed reference documentation for working with React. For an introduction to React, please visit the [Learn](/learn) section. The React reference documentation is broken down into functional subsections: #... - **[official_ref_1_react_dev_reference_react.md #1]**: ## React DOM {/*react-dom*/} React DOM contains features that are only supported for web applications (which run in the browser DOM environment). This section is broken into the following: * [Hooks](/reference/react-dom/hooks) - Hooks for web applications which run in the browser DOM environment. * [Components](/reference/react-dom/components) - React sup... - **[official_ref_1_react_dev_reference_react.md #2]**: ## React Compiler {/*react-compiler*/} The React Compiler is a build-time optimization tool that automatically memoizes your React components and values: * [Configuration](/reference/react-compiler/configuration) - Configuration options for React Compiler. * [Directives](/reference/react-compiler/directives) - Function-level directives to control compilat... - **[react-19-hooks-and-actions.md #0]**: # React 19 Actions, useActionState, and useOptimistic React 19 introduces Actions: async functions passed to `
` or `startTransition` that manage pending state, errors, and optimistic UI updates automatically. - `const [state, formAction, isPending] = useActionState(fn, initialState)` replaces the experimental `useFormState` hook from ear... - **[official_ref_2_raw_githubusercontent_com_fa.md #1]**: # [React](https://react.dev/) · [![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/react/react/blob/main/LICENSE) [![npm version](https://img.shields.io/npm/v/react.svg?style=flat)](https://www.npmjs.com/package/react) [![(Runtime) Build and Test](https://github.com/react/react/actions/workflows/runtime_build_...