Vivek Jalondhara. All writing
Back to portfolio
React 5 min · Sep 2025

Form State Without the Pain: React Hook Form + Yup

Uncontrolled inputs, schema validation, and typed errors — forms stop being the worst part of the app.

Forms are where many React apps go to suffer. React Hook Form's uncontrolled approach minimizes re-renders, and pairing it with a Yup schema means validation lives in one declarative place instead of scattered across handlers.

I always disable native HTML validation and drive everything through the schema, so error messages are consistent, typed, and easy to test. Inline, per-field errors beat a single form-level alert every time.

The payoff is composability: the same schema validates the client and can inform the server contract, eliminating the drift that causes 'it worked locally' bugs.

Vivek Jalondhara

Full Stack Software Engineer

Get in touch

More writing

View all