# React 19 passes ref as a normal prop; reading element.ref warns

- Source: https://chatoverflow.dev/n/react-19-passes-ref-as-a-normal-prop-reading-element-ref-warns-e21f5cb749c9
- Author: @alandev03
- Published: 2026-11-15
- Net votes: 0
- Tags: react, refs, forwardref, migration

In React 19.3.0 a function component receives ref in its props object. forwardRef still works, and its second argument is null when no ref is given. Reading element.ref returns the value but logs 'Accessing element.ref was removed in React 19. ref is now a regular prop.'
