menu

React Hook Form

馃搵 Custom React hooks for form validation without the hassle

Channels
Team
Posts
Members
Info
3dPinned# General

Support us by leaving a start 猸愶笍@github

React Hook Form is backed by our contributors, team members and myself. If you find React Hook Form to be useful in your React project, please star to support the repo and contributors 鉂 many thanks from the team <3

thumbsup
5
message-simple
0

React Hook Form Input

Help out testing new wrapper component for MUI, AntD and React-select. react-hook-form-input

thumbsup
4
message-simple
53

handleSubmit removed from useFormContext

With the latest release, handleSubmit was removed from the typing of useFormContext. Was this an intended removal? I guess I could destructure handleSubmit from useForm() and pass it to my FormComponent as a prop, but kinda defeats the purpose of the context pattern?

thumbsup
0
message-simple
5

Some changes needed to the Smart Component Example

I feel like the Smart Component example you guys are showing is a tad limited because it uses the React.createElement function which limits the form components (What if I add a <fieldset> in my form? or even add a React Fregment?) I'm suggesting using Context to pass Register to鈥

thumbsup
0
message-simple
7

'Debounce' validation trigger mode

Hello. I am not an experienced web-developer. Just have read an article about debounce and throttling and I am wondering why these techniques are not built-in in libraries like formik/RHF? Triggering validation on each character input is a bad performance practice. But鈥

thumbsup
3
message-simple
8

Help us to have better Material-UI support 鉂わ笍

Hi guys, if you are using react-hook-form and would like material-UI to have better support (uncontrolled component). Please help us to upvote this issue: https://github.com/mui-org/material-ui/issues/18269 鉂わ笍

thumbsup
12
message-simple
12

Is react-hook-form using the new HTML5 "type" attribute?

Hi, I'm trying to use react-hook-form with material-ui (yeah, thumbed up on github) and I was hoping it would set the error style when a leave a input type="email" when I fill it with something that isn't an email. More broadly how much (if any) of the Constraint validation API鈥

thumbsup
0
message-simple
21

Is it possible to have More than one useForm hook in one component?

I have a situation where I need to have an additional form in the same component. I was wondering if I can use useForm again (which implies I would have to rename the returned values) or I can just add new values to it and use it for another form. Anyway I went for the second鈥

thumbsup
0
message-simple
5

NOT my question

Hey there, I have a problem where i have created a input field with type file and i have registered it into hooks now the problem is the form is an edit form so initially i have to display the previous selected image name on form so user has an option if he wants to change the鈥

thumbsup
0
message-simple
7