next.js
5f4238d9 - docs: `useFormState` (#55564)

Commit
2 years ago
docs: `useFormState` (#55564) This PR shows how to use a new React hook `useFormState` in the context of the [Forms and Mutations](https://nextjs.org/docs/app/building-your-application/data-fetching/forms-and-mutations) docs. It also updates the forms example (`next-forms`) to show the recommended patterns for loading / error states. Related: https://github.com/vercel/next.js/pull/55399 --- Co-authored-by: John Pham <johnphammail@gmail.com>
Author
Parents
Loading