Releases: CodeStix/typed-react-form
Releases · CodeStix/typed-react-form
v2.2.3
v2.2.0
v2.1.0
New:
- The
<Field/>
component, a compact, form field component that replaces FormInput, FormSelect and FormInput. - The
<FieldError/>
component, the ultimate replacement for FormError. <AnyListener/>
now renders a JSON representation of the form if no render function is provided.<Listener/>
now renders the field value if no render functin is provided- Better naming: renamed
useArrayForm
->useArrayField
,useChildForm
->useObjectField
v1.3.1
v1.3.0
- Moved
yupValidator
to seperate packagetyped-react-form-yup
- Child/array forms name prop only allows object fields now.
- Pass FormEvent through
form.handleSubmit
- Allow string as argument to setErrors, which sets the error on the parent.
- Allow validators to return undefined.
This version requires TypeScript 4.1+! Use typed-react-form@v1.2.13 for libraries that don't support TypeScript 4.1 yet