Skip to content

[Suggestion]: Since forwardRef is considered a legacy API, it should be removed from another section of the documentation. #7426

Closed
@Saeed-jlnsi

Description

@Saeed-jlnsi

Summary

Summary

Since forwardRef is considered a legacy API, it should be removed from Manipulating the DOM with Refs section of the documentation.

Page

https://react.dev/learn/manipulating-the-dom-with-refs#recap

Details

In the recap section is still a reference to forwardRef:

"A component doesn’t expose its DOM nodes by default. You can opt into exposing a DOM node by using forwardRef and passing the second ref argument down to a specific node."

Could be change to : "A component doesn’t expose its DOM nodes by default. You can opt into passing a ref argument like a props down to a specific node."

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