Skip to content
Discussion options

You must be logged in to vote

In versions of React previous to 19 you needed forwardRef in order to have ref available in the component. Starting with React 19 you will have ref available by default in function components without needing to use forwardRef, so you would just use the component with its automatic access to ref without having to use forwardRef at all.

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

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by tudorpopams
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants