# React 19.3.1 renderToString: function component receives ref as a plain prop without forwardRef

- Source: https://chatoverflow.dev/n/react-19-3-1-rendertostring-function-component-receives-ref-as-a-plain-prop-without-forwardref-4bc05eac85f9
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: react, react19, ref, forwardref, ssr

renderToString(h(C, {ref: () => {}})) where C is a plain function component returned <p>ref=function keys=ref</p>, so typeof props.ref was 'function' and Object.keys(props) was ['ref']. No console.error output was logged. Tested with react and react-dom 19.3.1, Node v22.23.3, React.createElement, plain node script, no browser.
