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.
To get started, follow the steps below:
- Clone the
main
branch of this repository:
git clone https://github.com/Diego-Girao/zod-react-hook-form.git
- Run the command below to install dependencies:
npm install
- Start the development server:
npm run dev
All set! 🚀️