DEV Community

Cover image for Looking for the Best React Form Library? It’s Probably on This List

Looking for the Best React Form Library? It’s Probably on This List

Peter Mbanugo on February 15, 2021

Forms are used to collect data for processing from users. Many websites today have one or more forms. If you work with React, you know that it prov...
Collapse
 
dastasoft profile image
dastasoft

I usually use React Hook Forms, they are updating the library often and with the context it is very easy to create components that take advantage of the form utilities they provide.

If the form is big enough the combination of React Hook Forms + Yup is awesome, I used to really hate working with forms but now I can admit it's very affordable.

Collapse
 
sunpietro profile image
Piotr Nalepa

The only downside of it is its asynchronicity. Whenever you need to get the most actual data you need to use useWatch or watch from useForm hook. They decrease performance heavily.

Collapse
 
hidaytrahman profile image
Hidayt Rahman

Also, It doesn't work properly in case of setting the default value.

Thread Thread
 
sunpietro profile image
Piotr Nalepa

I haven't been in such situation before.

Thread Thread
 
hidaytrahman profile image
Hidayt Rahman • Edited

But when you use this with material UI. you will get to know how complex is this to handle the default value.

Collapse
 
gkhan205 profile image
Ghazi Khan

You can also have a look into this.
npmjs.com/package/formify-react

Collapse
 
michelledev3 profile image
Info Comment hidden by post author - thread only accessible via permalink
michelledev • Edited

This is just a share of a product I use that has a deep integrations with React, Vue and even Angular. Have you heard of Wijmo? grapecity.com/wijmo/react-ui-compo... It has 100+ dynamic JS UI Components.
Low level learning curve available on npm

Collapse
 
pmbanugo profile image
Peter Mbanugo

You shouldn't be doing this. Your comment is not related to my post and trying to promote your product in a manner I find to be unethical.

Collapse
 
michelledev3 profile image
michelledev

Didn't mean to offend, we have a react library similar to Kendo. It relates to your article as we are not listed and thought I would send you the details, in case you were interesting in learning about other alternatives. I will remove my comment but it was not be unethical, it was being informative. This is a place where we come together to learn and share. I learned from your article and then I shared what I know. Sorry Peter.

Thread Thread
 
pmbanugo profile image
Peter Mbanugo

Seems you updated your comment....

How does Wijmo deal with Forms in React? I couldn't find anything relating to that in your library.

Collapse
 
mpwiatr profile image
mpwiatr

Hey @pmbanugo ! What about uniforms.tools/? IMHO it's a good one. What made you decide it wasn't in your summary? I think it has even better solutions in some specific areas than mentioned ones.

Collapse
 
mohithgupta profile image
K.Mohith Gupta

Can you suggest a form library for a multi step form in which I can include interactivity ( such as handleClick or onHover ) for the step numbers (the numbers at the top that show the step you are in) . I want to include handle click such that user goes directly to that step if he clicks on a certain number (step number).

Collapse
 
tracker1 profile image
Michael J. Ryan

It's mostly the combination of forms with a tabstrip, customizing the tab strip... as to what that takes, depends on your UI components you're already using as to what approach or styling is needed.

In the end, what you're doing is a combination of things, not an out of the box component. This is where you get into custom development beyond CRUD.

Collapse
 
pmbanugo profile image
Peter Mbanugo

Hi Gupta,

Any of the libraries I mentioned can do that. Here's an example using KendoReact .

Collapse
 
mohithgupta profile image
K.Mohith Gupta

Thanks

Collapse
 
heresinceres profile image
徐凯

You can also have a look into this.
github.com/react-component/field-form

Collapse
 
movingelectrons profile image
Jerome Stonebridge

I prefer to just use forms provided by bootstrap:

react-bootstrap.github.io/componen...

Collapse
 
gustavoluchi profile image
Gustavo Luchi

Nice article. You said "while React Hook Form uses hooks and uncontrolled inputs". I'm not sure that you meant that, but React Hook Form works pretty well with controlled inputs also (done it myself).

Collapse
 
pmbanugo profile image
Peter Mbanugo

I haven't looked at it recently but I think that was the case as at when I wrote the article

Some comments have been hidden by the post's author - find out more