Ccodemod-com-bot

react-19-remove-forward-ref

Inline forwardRef render functions and move ref into props

ReactforwardRef
Public
7 executions

Run locally

npx codemod react-19-remove-forward-ref

react-19-remove-forward-ref

Inline forwardRef(...) render functions and pass ref through props.

Usage

bash
Before

This is one example from the codemod's test cases. The codemod may handle many more cases.

Ready to contribute?

Build your own codemod and share it with the community.