Skip to content

resend/resend-nextjs-useactionstate-example

Repository files navigation

Resend with Next.js

This example shows how to use Resend with Next.js using the useActionState hook to handle form submissions.

Deploy your own

Deploy the example using Vercel:

Deploy with Vercel

Instructions

  1. Define environment variables in .env file.
cp .env.example .env
  1. Install dependencies:
npm install
# or
yarn
  1. Run Next.js locally:
npm run dev
  1. Update the email address in the components/form/actions.ts file to your own email address.

License

MIT License

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •