react-hook-form

📋 React Hooks for form state management and validation (Web + React Native)

MIT License

Downloads
25.6M
Stars
39.4K
Committers
318
react-hook-form - Version 3.7.3

Published by bluebill1049 over 5 years ago

react-hook-form - Version 3.7.1

Published by bluebill1049 over 5 years ago

  • better support on an external component and server-side rendering

the example below for integrating with react-select
https://codesandbox.io/s/72j69vnk1x

react-hook-form - Version 3.7.0

Published by bluebill1049 over 5 years ago

  • new API for set field value setValue

const setValue = (name: string, value: string | number | boolean) => void

example:

setValue('firstname', 'bill');

react-hook-form - Version 3.6.0

Published by bluebill1049 over 5 years ago

  • support defaultValues as optional argument for useForm
const { register, handleSubmit } = useForm({
    defaultValues: {
      firstName: "bill",
      lastName: "luo",
      email: "[email protected]"
    }
});
react-hook-form - Version 3.5.2

Published by bluebill1049 over 5 years ago

  • skip re-render after successful submit
react-hook-form - Version 3.5.0

Published by bluebill1049 over 5 years ago

  • fix the issue around remove event listener on reset and remove an element from the DOM tree
react-hook-form - Version 3.4.2

Published by bluebill1049 over 5 years ago

  • Fix a bug with reset should remove event listeners as well
react-hook-form - Version 3.4.0

Published by bluebill1049 over 5 years ago

  • added setError method for a dynamic set or clear error

set an error
set('firstname', 'required')

clear an error
set('firstname', undefined)

react-hook-form - Version 3.3.2

Published by bluebill1049 over 5 years ago

  • patch on the bug when reset not trigger re-render
react-hook-form - Version 3.3.0

Published by bluebill1049 over 5 years ago

  • include new method reset() to reset field values and errors
react-hook-form - Version 3.2.5

Published by bluebill1049 over 5 years ago

  • fix custom validation bug
react-hook-form - Version 3.2.4

Published by bluebill1049 over 5 years ago

  • fix isSubmittedRef and submitCountRef to be mutated after form submitted
react-hook-form - Version 3.2.3

Published by bluebill1049 over 5 years ago

  • make sure error message will return string not boolean
react-hook-form - Version 3.2.2

Published by bluebill1049 over 5 years ago

  • fix a bug on custom validation
react-hook-form - Version 3.2.1

Published by bluebill1049 over 5 years ago

  • remove redundant state for setState
react-hook-form - Version 3.2.0

Published by bluebill1049 over 5 years ago

  • form state include two more state
    • isSubmitting
    • submitCount
react-hook-form - Version 3.1.0

Published by bluebill1049 over 5 years ago

##Better typescript support

  • all hook method have type support
  • clean up all the types
  • include eslint
  • remove all type errors
react-hook-form - Version 3.0.4

Published by bluebill1049 over 5 years ago

  • improve Yup validation return errors message
react-hook-form - Version 3.0.3

Published by bluebill1049 over 5 years ago

react-hook-form - Version 3.0.2

Published by bluebill1049 over 5 years ago

  • fix a bug on radio bug