Skip to content

[Suggestion]: forwardRef is a legacy api, so should it be removed from where it's used? #7350

Open
@dreampasssser

Description

@dreampasssser

Summary

As above, in docs, there are still several references of forwardRef. It is suggested that we should remove them or replace them by a new way.

Page

No response

Details

I find out some pages(there may be more):

Accessing another component’s DOM nodes, the example in this section doesn't encounter error any more.

useImperativeHandle, there're a lot of forwardRef.

I can’t get a ref to a custom component, this doesn't encounter error neither.

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