Debounce function forces a function to wait a certain amount of time before running again. The function is built to limit the number of times a function is called.
The debounce parameter delays the updating of the state until the user has stopped changing inputs for a predetermined amount of time.
The input value be set to state values and then updated via React events. Defining a form’s input value via state is considered a controlled component. For controlled inputs you will need a corresponding state and then a function to update that state with changes.
It means that every change in state your component, it is mounted again.
If you want to use this kind of form, you need only pass property
debounce:300 whit a time in object received in
Also, it means that the validations are run in every state change, providing better user feedback. See more in Controlled Inputs with validation.
useForm provides a
input function, this function as a link with input and a object property of form state.
Use dot notation to create advanced objects or to map object values. Type an entry name and type or an entry property object.