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
sheng2808
sheng2808OP•2y ago
okay i realized that it's when the button type is "submit" the tailwind will become broken
Neto
Neto•2y ago
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
kepuczito420
kepuczito420•2y ago
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.
sheng2808
sheng2808OP•2y ago
ahh i see, okay found the cause that's breaking my button css, it's styling for uploadthing button 😅 '
Want results from more Discord servers?
Add your server