Ccodemod-com-bot

react-new/replace-use-form-state

Rename useFormState to useActionState in react-dom imports and usages

React
Private
0 executions
Run locally
npx codemod @react-new/replace-use-form-state
Documentation

replace-use-form-state

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

Usage

bash

Development

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.