menu

React Hook Form

📋 Custom React hooks for form validation without the hassle

Channels
Team
Posts
Members
Info

More code comments?

RHF is one of my favorite libraries. As someone new to React with extensive back-end experience, I really appreciate the interface and overall quality of the project from a developer perspective. I have written a few hooks of my own but I am looking to start writing a more…

thumbsup
2
message-simple
2

https://codesandbox.io/s/sad-sutherland-zvfok

Not working anymore

thumbsup
0
message-simple
4

how to watch field in react (dynamically add useEffect)?

I am trying to watch a field which have watch:true field.In other words I want add useEffect dynamically.I have one json (which is coming from server).I want to watch field value (which have property watch:true).using it's value I want to update other field value . here is my…

thumbsup
0
message-simple
12

What is the alternative to use yup when validationSchema gets deprecated?

The API documentation clearly says that this option will get deprecated in the next major release. What will happen if I'm using yup? (https://react-hook-form.com/api) validationSchema: undefined, // Note: will be deprecated in the next major version

thumbsup
2
message-simple
31

Kudos!

@bluebill1049 and the other contributors, I just wanted to give some praise for this library. I've been working on something exactly like this and it's funny how similar the two are, but I definitely like the approaches of this library better so I'm in the process of switching…

thumbsup
1
message-simple
1

How to add items in select dynamically in react?

Could you please tell me How to add items in select dynamically in react ? I am getting response from server (name , label etc).For example I just mock my response and after two second I fetch that . In my example I have two select box or drop down .first dropdown have value…

thumbsup
0
message-simple
6

Submitting Partial Data [SOLVED]

Our company has begun integrating RHF into our code (and we really like it, great job!). We've come across an interesting use case. As part of our signup process, we currently have it configured so that if there is any change in the form and there's a subsequent blur event, it…

thumbsup
0
message-simple
3

Input field name with special characters

Hello, I am trying to use react-hook-form with a Input field name with special characters, but the field with special characters doesn't get validated. I have two fields one with special characters '[' and ']' and another without those special characters. …

thumbsup
0
message-simple
18

Hidden fields are removed from the form value when submitted.

https://codesandbox.io/s/mystifying-wildflower-xm9yf

thumbsup
0
message-simple
5

why required check is not working ?

Hi I am using datepicker.when I click submit button .it is not showing Required error as it is required field.here is my code.I already registered with required and also tried to use rule but still not getting required validation <MuiPickersUtilsProvider…

thumbsup
0
message-simple
2