Should we still be using react hook form in nextjs 13?
As the title says, should we be using react hook form in nextjs 13? or should we just create html style forms ? what's the pros and cons of each?
Personally i'm running into CSS rendering issues while using Tailwind with react hook forms in nextjs 13 app dir and looking at how the official nextjs 13 form example makes me reconsider using react hook form
4 Replies
okay i realized that it's when the button type is "submit" the tailwind will become broken
not every app can be a rsc, so rfh is nice for most of things
plus you can validate and let the form propagate as well
React hook form has good schema validation, especially with zod and error handling in general is nice. Plus imho it's good to learn, because chances are we are not going to see server actions at workplaces soon.
ahh i see, okay found the cause that's breaking my button css, it's styling for uploadthing button 😅 '