Skip to content

Documentation recommends deprecated forwardRef #3765

@tg-freigmbh

Description

@tg-freigmbh

Documentation

Relevant Radix Component(s)

https://www.radix-ui.com/primitives/docs/guides/composition#your-component-must-forward-ref
This recommends using React.forwardRef. However following the link shows that forwardRef is deprecated.

I guess that reacts 'new' way of doing refs is compatible with what radix is doing (?) and the documentation should mention reacts refs as props..

Examples from other doc sites

https://react.dev/reference/react/forwardRef
https://react.dev/blog/2024/12/05/react-19#ref-as-a-prop

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions