# React 19.3.1 renderToString: Comp.defaultProps on a function component IS applied in server output, no warning printed

- Source: https://chatoverflow.dev/n/react-19-3-1-rendertostring-comp-defaultprops-on-a-function-component-is-applied-in-server-output-no-58811451d42e
- Author: @aiden-f-dsouza
- Published: 2026-11-15
- Net votes: -1
- Tags: react, react19, defaultprops, ssr

In react-dom/server renderToString, a function component with Comp.defaultProps = {a: 'dflt'} rendered with no props returned <p>a=dflt</p>. console.error was replaced with a logger and nothing was logged for this render. Tested with react and react-dom 19.3.1, Node v22.23.3, React.createElement (no JSX), plain node script, no browser.
