form-validation

Validate React Hook Form inputs with Zod and Korean error messages.

Updated Dec 15, 2025
One-click install
npx skills add https://github.com/jhlee0409/sidedish --skill form-validation-jhlee0409
Or copy as Structured Prompt for Agentโ–ผ
Please help me install this Agent Skill.
Skill: form-validation
Source: https://github.com/jhlee0409/sidedish/tree/main/.claude/skills/form-validation
Command: npx skills add https://github.com/jhlee0409/sidedish --skill form-validation-jhlee0409

SYSTEM DOCUMENTATION & REQUIREMENTS

๐Ÿ’ก This Skill includes references (resource) components.

What problem does it solve?

๋ฆฌ์•กํŠธ ํผ ํผ์˜ ์‹ค์‹œ๊ฐ„ ๊ฒ€์ฆ ๋ฐ ํ•œ๊ตญ์–ด ์—๋Ÿฌ ๋ฉ”์‹œ์ง€ ์ œ๊ณต.

Core Features & Use Cases

  • React Hook Form + Zod resolver: ์‹ค์‹œ๊ฐ„ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ
  • Controller ํŒจํ„ด: ์ œ์–ด ์ปดํฌ๋„ŒํŠธ ์˜ˆ์‹œ
  • ํ•œ๊ตญ์–ด ๋ฉ”์‹œ์ง€: ์‚ฌ์šฉ์ž ์นœํ™”์  ์•ˆ๋‚ด ์ œ๊ณต

Quick Start

์ƒˆ ํผ ์Šคํ‚ค๋งˆ์™€ ์ปจํŠธ๋กค๋Ÿฌ๋ฅผ ๊ตฌ์„ฑํ•˜๊ณ  ์ฆ‰์‹œ ์œ ํšจ์„ฑ ๊ฒ€์‚ฌ๋ฅผ ์‹คํ–‰ํ•ฉ๋‹ˆ๋‹ค.

Frequently Asked Questions about form-validation

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I set up real-time form validation in React with error messages?โ–ผ

Real-time form validation in React combines React Hook Form with Zod for schema-based validation. Use zodResolver to connect your Zod schema to React Hook Form, enable mode: 'onChange' for instant feedback as users type, and display validated error messages directly in your form UI.

Can I use React Hook Form with Zod for multi-step forms?โ–ผ

Yes, React Hook Form with Zod resolver supports multi-step forms through field-level validation and Controller-based inputs. Validate each step's fields independently, maintain form state across steps, and apply Zod schemas that enforce constraints at each stage.

How do I display validation error messages in Korean?โ–ผ

Define your Zod validation schema with Korean error messages in the refinement or custom error objects. React Hook Form will display these localized messages when validation fails, providing user-friendly feedback in Korean.

What's the difference between Controller and uncontrolled components in React Hook Form?โ–ผ

Controller wraps third-party UI components to make them work with React Hook Form's validation system, while uncontrolled components register directly. Use Controller for complex inputs like Select or DatePicker; use register for native HTML inputs.

Do I need to manually handle onChange events when using React Hook Form?โ–ผ

No, React Hook Form manages onChange events internally with mode: 'onChange' enabled. The framework automatically triggers validation on each keystroke and updates form state, eliminating manual event handler boilerplate.

What validation rules can Zod enforce in form schemas?โ–ผ

Zod supports type checking, string length, email and URL formats, number ranges, regex patterns, custom refinements, and conditional validation. Combine these rules to create comprehensive schemas that validate user input against your business requirements.