Documentation of React Form Input Validation API's for use of web developers validating React Forms.
All notable changes to React Form Input Validation APIs will be documented in this file.
The format is based on Keep a Changelog.
- Introduced the hook support
- Form validation with React Functional Component and useState Hooks - #41
- Fixed Confirm password not working issue - #19
- Reduced the package size with webpack configurations.
- Performance optimization
- Fixed
onformsubmit
event is received with empty values.
- Added the following new API's
- A new custom event is introduced to provide validated form data.
- A custom attribute
data-async
introduced to denotes async validation form field. It should be mentioned in form field, if the form field has async validation. ReferregisterAsync
API for more details.
- API Documentation contents has improved.
- More Code Sandbox examples are added in the API document.
- Modified API name from
handleFieldsChange
tohandleChangeEvent
. - Error message containing state
inputErrors
is renamed toerrors
. - Accessing error message in state is modified from
state.inputErrors.{form field name}.message
tostate.errors.{form field name}
.
- Contructor arguments reduced.
- Rules passing in consturctor is removed. And the alternate is
useRules
. - Handle submit callback in constructor removed. And the alternate is
onformsubmit
event.
- Rules passing in consturctor is removed. And the alternate is
- A limited featured package has published.