DEV Community

Cover image for Creating a Contact Form with React Hook Form and Tailwind CSS
coder4life
coder4life

Posted on

Creating a Contact Form with React Hook Form and Tailwind CSS

In this code-along tutorial we will be creating a classic contact form using React Form Hook and Tailwind CSS. The form consists of 3 fields: name, email, and message. In React we will creating a custom form element component for creating the fields and using the control functionality from React Hook Form to control these "external" elements. All fields are required so will also handle any errors here. Styling of this page will be done with the help of Tailwind CSS.

Top comments (0)