CCodemod

react/19/replace-use-form-state

No description available

reactmigration
Public
55,717 executions
Run locally
npx codemod react/19/replace-use-form-state
Documentation

This codemod will replace the usages of useFormState() to use useActionState(), introduced in React v19.

Example

Before:

ts

After:

ts

Before:

ts

After:

ts

Ready to contribute?

Build your own codemod and share it with the community.