TypeScript, react-hook-form, zod: blissful forms
The Klaw team has developed reliable, composable, and delightful web forms using TypeScript, react-hook-form, and zod libraries. These tools have enabled the creation of extensible forms that are easy to understand for contributors and provide strong validation capabilities. The use of react-hook-form allows for the creation of composable building blocks for forms, while zod provides a robust schema declaration and validation library. By splitting responsibilities between these two libraries and co-locating form schemas with their respective forms, the Klaw team has achieved its objectives of creating reliable, composable, and delightful web forms.
Company
Aiven
Date published
Aug. 8, 2023
Author(s)
Mathieu Anderson
Word count
1806
Language
English
Hacker News points
None found.