Next.js Discord

Discord Forum

Form Handling

Answered
Polar bear posted this in #help-forum
Open in Discord
Avatar
Polar bearOP
What is the way to go for handling forms in nextjs app.
I see there is a lot of options, and I'm confused which one is better: 'react-hook-form', 'mantine-form', 'next-safe-action`, ...etc
Answered by B33fb0n3
even if I tell you, the library X is mostly used it can still not fit your needs. Create a project, build a simple form and create multiple version of that form. One with only the browser html. The next with react-hook-form, the next with matine-form, ...

If you still want an answer: I heard that many people use react-hook-form
View full answer

5 Replies

Avatar
which one is better
that depends very much on you. You personally. Some people like to work with these libraries and others don't. Test them and you see if you like them or if you want to work without these libraries
Avatar
Polar bearOP
but which is most common to use in nextjs ecosystem?
Avatar
even if I tell you, the library X is mostly used it can still not fit your needs. Create a project, build a simple form and create multiple version of that form. One with only the browser html. The next with react-hook-form, the next with matine-form, ...

If you still want an answer: I heard that many people use react-hook-form
Answer
Avatar
Polar bearOP
good idea, thank you.
Avatar
happy to help