Forms with Next.js and Server Actions

This example shows how you can build forms with Next.js and Server Actions.

Deploy your own

Deploy with Vercel

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).