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.
I'm a web developer with passion for my job. I love sharing my knowledge with fellow developers at my work and by writing articles about web development on personal blog
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.
I'm a web developer with passion for my job. I love sharing my knowledge with fellow developers at my work and by writing articles about web development on personal blog
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.
The only downside of it is its asynchronicity. Whenever you need to get the most actual data you need to use
useWatch
orwatch
fromuseForm
hook. They decrease performance heavily.Also, It doesn't work properly in case of setting the default value.
I haven't been in such situation before.
But when you use this with material UI. you will get to know how complex is this to handle the default value.