Skip to content

refactor: forwardRef is deprecated in React 19#47

Open
alamenai wants to merge 1 commit intoelevenlabs:mainfrom
alamenai:ala/voice-button-refactor-ref
Open

refactor: forwardRef is deprecated in React 19#47
alamenai wants to merge 1 commit intoelevenlabs:mainfrom
alamenai:ala/voice-button-refactor-ref

Conversation

@alamenai
Copy link
Copy Markdown
Contributor

What

React 19 had deprecated forwardRef and we can pass ref as prop. Read more on React documentation.

Why

React team will not support forwardRef in the future release.

More

React team will publish a codemode to update automatically the components to use ref as prop. We still have other components that still use forwardRef.

@vercel
Copy link
Copy Markdown
Contributor

vercel bot commented Dec 19, 2025

@alamenai is attempting to deploy a commit to the ElevenLabs Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant