mirror of
https://github.com/hanzoai/next.js.git
synced 2026-09-24 17:00:51 +00:00
We recently merged and combined the RC docs into the main docs, so there is a single codebase. This added new icons and callouts for parts of Next.js that are experimental or in a canary release. However, this gets a little tricky with React 19. There have been changes to `useFormState` and `useFormStatus` which differ from the latest v14.x release and 15 + React 19 RC. As 14 is still the stable release, we need to default to showing `useFormState` and add proper callouts for those on canary/RC. I also added more details to the upgrade guide for v15.
Forms with Next.js and Server Actions
This example shows how you can build forms with Next.js and Server Actions.
Deploy your own
How to use
Execute create-next-app with npm, Yarn, or pnpm to bootstrap the example:
npx create-next-app --example next-forms next-forms-app
yarn create next-app --example next-forms next-forms-app
pnpm create next-app --example next-forms next-forms-app
Deploy it to the cloud with Vercel (Documentation).