Form validation is hard.
@asidorenko_35K followers
145,980 views
8 Comments
Comments from the original post on X (Twitter)

@deepwhitman
I like the react-hook-form flow Shadcn uses. Just the client though which I think is fine.
10 likes

@fredkisss
This resembles the new tanstack form, pretty sure it works on both environments exactly like that cc @crutchcorn
5 likes

@DannyGuerin7
I guess I'm just the weird person that really, genuinely loves writing form validation from scratch. Like, it is fun to me. Please give me more forms to validate.
4 likes

@Chrizzmeister
What if you need the check the db in the validation for the server only? For example to check if the selected user exists when sending the id
3 likes

@typeofweb
There is such library: it's called next-safe-action!
3 likes

@FabianHiller
🙌
1 like

@isaiahmarcs
I do this with tRPC, React Hook Form and Zod
1 like

@BharAbhinav
You can just make it a npm package and do it
