[Bug]: Documentation suggests a soon-to-be deprecated function #7345
Open
Description
Summary
https://react.dev/reference/react/useRef#i-cant-get-a-ref-to-a-custom-component says "By default, your own components don’t expose refs to the DOM nodes inside them." and goes on to suggest forwardRef, but https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop says "In future versions we will deprecate and remove forwardRef."
Page
https://react.dev/reference/react/useRef
Details
No response