/zod-react-hook-form

This project is for practice and improve my knwoledges with Nextjs, React Hook Form and Zod, be my guest to use and share.

Primary LanguageTypeScript


Logo

📋️ How to Validate Forms with Zod and React-Hook-Form

Live Project 🌐️ | Code 👨‍💻️ | Article 📋️

👨‍💻️ Introduction

I was looking for examples of React Forms and validation when I came across this great article. I decided to use it as a guide and reference.

👏️ Special thanks to: ✨️Gift Uhiene, the article was written by her.

This is the GitHub repository for the How to Validate Forms with Zod and React-Hook-Form tutorial.

In this tutorial, you will learn how to build a type-safe form using React-Hook-Form for form management and Zod for both client-side and server-side validation.

Getting Started

To get started, follow the steps below:

  1. Clone the main branch of this repository:
git clone https://github.com/Diego-Girao/zod-react-hook-form.git
  1. Run the command below to install dependencies:
npm install
  1. Start the development server:
npm run dev

All set! 🚀️