-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Docs: Add note about
useActionState
and useFormState
React versio…
…ns (#68880) Warn users about React versions for `useFormState` vs. `useActionState`. - `useFormState` was renamed to `useActionState` in React 19 RC. - There are no React docs for `useFormState` that we can link to but the `useActionState` mentions the change. To avoid having to update all mentions of `useActionState` now, then update all mentions of `useFormState` in the future, I've kept the `useActionState` examples as is, and added a callout about the React versions in the pages that have `useActionState` examples.
- Loading branch information
1 parent
3e0bf6b
commit ada7d2f
Showing
3 changed files
with
10 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters