This repository has been archived by the owner on May 4, 2020. It is now read-only.
4.0.0 (Major release with breaking API changes):
4.0.0 (Major release with breaking API changes):
validatorData
is nowgetValidatorData
to be more idiomatic of Reactvalidate
now takes an error-first callback, which allows for a simpler API when validating on Submit.validate
also takes an optional key as a first param that can be used to validate a single form field.isValid
is now a simple wrapper aroundthis.state.errors
see example for handling form submission in 4.x.xclearValidations
has been added to reset all current errors.handleValidations
now takes a second parameter error-first callback that can be used for custom handling of errors.