Form Management in Next.js
Answered
Chinese Alligator posted this in #help-forum
Chinese AlligatorOP
What is the recommended approach for Form management in Next.js, i have seen many name thrown around like formik, react hook form, and use of form action. I have a case where my form will be highly interactive, how should i approach it.
Answered by Chinese Alligator
multiple people recommending react-hook-form and zod, so using it for now.
4 Replies
@Chinese Alligator What is the recommended approach for Form management in Next.js, i have seen many name thrown around like formik, react hook form, and use of form action. I have a case where my form will be highly interactive, how should i approach it.
I like to use to not use forms. I like to have my input fields (textinput, checkbox, …) and then validate + execute server action when the user clicks a button. Then I don’t need all the stuff with third party libraries and stuff..
@Chinese Alligator solved?
@B33fb0n3 <@897079238438567988> solved?
Chinese AlligatorOP
multiple people recommending react-hook-form and zod, so using it for now.
Answer
@Chinese Alligator multiple people recommending react-hook-form and zod, so using it for now.
alright, thanks for letting me know