You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
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
The text was updated successfully, but these errors were encountered: