Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
jouchaib2020 opened this issue Dec 7, 2024 · 0 comments

Comments

@jouchaib2020
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant