© 2026 Hashnode
The Problem: Inconsistent Email Validation Across the Codebase A frontend spike revealed that email validation logic between the backend and frontend was not consistent. The backend depended on a large Mailman regex with additional length checks, whi...

Form validation used to be my least favorite part of frontend development. Between managing state with useState, handling errors, and ensuring type safety, it felt like I was writing more boilerplate than actual logic. Then I discovered React Hook Fo...

Introduction Forms are the backbone of most applications — from login screens to checkout flows. But in React, handling forms is unique because we can either let React control inputs via state or leave them uncontrolled and use the DOM directly. On t...

Welcome to this comprehensive guide on designing performant, flexible, and extensible forms with easy-to-use validation using React Hook Form and Zod in React applications. Topics covered in this article Building forms: challenges and complexities. ...

If you’ve ever worked with React forms, you know how frustrating it is when your custom validation messages don’t show up as expected. I ran into a similar situation while using React Hook Form with Zod and Shadcn UI. Even after writing my custom err...
