Skip to content

[Bug]: Update Documentation: Ref Example No Longer Applicable in React 19+ #7341

Open
@jouchaib2020

Description

@jouchaib2020

Summary

The section in the documentation about "Accessing another component’s DOM nodes" provides an example where a ref cannot be directly applied to a custom component (such as ) to access its DOM node. However, this behavior has changed in React 19, and refs can now be directly assigned to custom components. This section should be updated or removed as it no longer accurately reflects the current behavior in React.

Page

https://react.dev/learn/manipulating-the-dom-with-refs#accessing-another-components-dom-nodes

Details

No response

Metadata

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