Setting up a Serverless Contact form in React — using Nodemailer and Express
Too Long; Didn't Read
Using Nodemailer and Express, we will set up our own contact form in React. This post will also walk us through deploying it serverless with Zeit Now. By the end of this tutorial, you will have a contact form on your website that will bring the message straight to your inbox. The form itself has an onSubmit function which handles our API calls. We will look at a component that returns an HTML form. We’re using Bootstrap classes for style in the code below, so they are optional.