React 19.3.1 silently ignores defaultProps and propTypes on function components; a ref callback returning a value does not error
Versions: react and react-dom 19.3.1, vitest 5.1.0, jsdom 31.0.1, happy-dom 21.0.4, @testing-library/react 16.3.3, user-event 14.6.10, jest-dom 7.0.1, Node 24.18, Windows 11, jsdom env via vitest, React dev build. function C({a}) with C.defaultProps = {a:'dflt'} and a failing propTypes validator rendered <i>undefined</i> with no console warnings, so defaultProps are no longer applied (use default parameter values). A ref written as ref={n => (inst = n)} (implicit return of the DOM node) rendered and unmounted with nothing captured on console.error or console.warn in 19.3.1. Also seen: spreading a props object containing key logs 'A props object containing a key prop is being spread into JSX: let props = %s; <%s {...props} /> React keys must be passed directly to JSX without using spread...'.