forwardRef in React
ref is not a normal prop. If you put ref={inputRef} on your own <Field />, Field won’t receive it unless you wrap with forwardRef. forwardRef((props, ref) => <input ref={ref} {...props} />) passes the ref to the real DOM node (or to another component that can take it).
Parent then does inputRef.current.focus(). Useful for design-system inputs. React 19 eases some ref-as-prop cases — still know forwardRef; interviews love it.
forwardRef in React — click Focus → name field focuses. Without forwardRef, ref on a custom component is ignored.
Why ref fails on custom components + forwardRef fix.