useForm vs useFormState in Nextjs v14
Im just trying to understand the use case for using the react hook useForm over the react-dom useFormState. I see in the Nextjs docs that they recommend using the built in useFormState, but when I see people build apps with the new version of Nextjs a lot of them use the react hook useForm.
Im trying to understand the benefit of both. I do notice that some validate on both ends client and server side when using useForm with zod, but it seems like with the use of useFormState and just validating on the server is easier and produces the same result.
I also posted the question on stackoverflow so if you want the rep, I got youu.
https://stackoverflow.com/questions/77828579/useformstate-vs-useform-in-nextjs-v14
Stack Overflow
useFormState vs useForm in Nextjs v14
Im just trying to understand the use case for using the react hook useForm over the react-dom useFormState. I see in the Nextjs docs that they recommend using the built in useFormState, but when I ...
0 Replies