← Back to browse
skill

React Form Writing and Validation Best Practices

From dust-tt/dust ★ 1,357

Summary

This skill guides the creation and refactoring of complex React forms using react-hook-form, enforcing best practices like Zod validation, controlled component handling via useController, and managing state updates using field.onChange versus setValue. It covers advanced patterns including field arrays and multi-step form validation.