React 19 forwardRef deprecation / ref as prop
Deterministic patch indexed for AI coding agents (Cursor, Claude Code, Cline, Windsurf, OpenDevin).
Root Cause: React 19 function components take ref as a prop.
react fix --latest
Deterministic patch indexed for AI coding agents (Cursor, Claude Code, Cline, Windsurf, OpenDevin).
- export const Input = forwardRef((props, ref) => <input ref={ref} />);
+ export function Input({ ref, ...props }: { ref?: React.Ref<HTMLInputElement> }) {
+ return <input ref={ref} {...props} />;
+ }
curl -X POST https://agentnow.in/api/v1/query \
-H "Content-Type: application/json" \
-d '{"error": "React 19 forwardRef deprecation / ref as prop"}'