Skip to content

[Bug]: Documentation suggests a soon-to-be deprecated function #7345

Open
@danielhjacobs

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

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions