Ccodemod-com-bot

react-19-replace-use-form-state

Rename useFormState to useActionState in react-dom imports and usages

React
Public
0 executions

Run locally

npx codemod react-19-replace-use-form-state

react-19-replace-use-form-state

Rename useFormState to useActionState in react-dom imports and usages.

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.