Zod
@zodtypes
TypeScript-first schema validation with static type inference.
By @colinhacks
Docs https://t.co/W6H0OevG8K
Discord https://t.co/Vuy7uIhXYe
ID:1589348082638282752
https://github.com/colinhacks/zod 06-11-2022 20:04:58
23 Tweets
3,1K Followers
1 Following
For people using Colin McDonnell 's zod, the good news is that it's integrated in the library.
Simply use branded types and infer. I encourage you to read their doc on branded types, it's brilliant!
zod.dev/?id=brand
David K πΉ Kent C. Dodds π We built schema based forms using π React Hook Form + Zod + form components we created + custom components can be added.
We can manually compose forms, or generate from JSON and it really saves so much time (and so many calls to useState)