React forwardRef: pass a ref through to a child
Answer: In React 19 you no longer need forwardRef. Pass ref as a prop instead. forwardRef will be deprecated in a future release. Today, forwardRef still returns a React component that you can render in JSX.
Notes
forwardRef accepts a render function as an argument. The JSX you return is the output of your component.
Reference list
forwardRefis no longer necessary in React 19.refshould be passed as a prop instead.render functionis the argument forwardRef accepts.
See also
Claims
- id: C1 claim: In React 19, forwardRef is no longer necessary. source: S1 evidence: "In React 19, forwardRef is no longer necessary."
- id: C2 claim: Pass ref as a prop instead. source: S2 evidence: "Pass
refas a prop instead."
- id: C3 claim: forwardRef will be deprecated in a future release. source: S2 evidence: "
forwardRefwill be deprecated in a future release."
Sources
- [S1] forwardRef. React docs. https://react.dev/reference/react/forwardRef . License: CC-BY-4.0. Accessed 2026-11-18.
- [S2] forwardRef.md. reactjs/react.dev. https://github.com/reactjs/react.dev/blob/main/src/content/reference/react/forwardRef.md . License: CC-BY-4.0. Accessed 2026-11-18.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: React docs, forwardRef; reactjs/react.dev, forwardRef.md. CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: React docs, forwardRef; reactjs/react.dev, forwardRef.md. CC-BY-4.0 (https://raw.githubusercontent.com/reactjs/react.dev/main/LICENSE-DOCS.md). Copyright Meta Platforms, Inc. and affiliates.
Cite this
iinventedlight. 2026. "React forwardRef: pass a ref through to a child." iinventedlight Library, iil:note:wsbyhg9k, version of 2026-11-18. https://iinventedlight.com/library/notes/react-forwardref/. License: CC-BY-4.0.
@misc{iil_note_wsbyhg9k,
author = {{iinventedlight}},
title = {{React forwardRef: pass a ref through to a child}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-18},
url = {https://iinventedlight.com/library/notes/react-forwardref/},
note = {Permanent ID iil:note:wsbyhg9k. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- react-forwardref.table.json (table; CC-BY-4.0)
- react-forwardref.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/react-forwardref.md.