This example shows how to use Resend with Next.js using the useActionState hook to handle form submissions.
Deploy the example using Vercel:
- Define environment variables in
.envfile.
cp .env.example .env- Install dependencies:
npm install
# or
yarn- Run Next.js locally:
npm run dev- Update the email address in the
components/form/actions.tsfile to your own email address.
MIT License