Performance-focused API for React forms 🚀
Bug fixes:
Other:
New minor release with some fixes and typing improvements.
registerField
;path
not required anymore when getValue
is present;setData
with values as objects or arrays;clearError
function to useField
hook;More details take a look at #223
📱 React Native support; ⚙️ New API with support for manual set/get of field values and errors, manual reset and more; ⚛️ More flexible useField API for custom inputs;
💜 New docs; (https://unform.dev) ⚡️ New NPM org (@unform); 🔥 Monorepo;
setFields
are considered the state queue when running unregisterField
(#107);Check
component - for single options rendered as a single checkbox (#110);Choice
component - for multiple options rendered as checkboxes or radio buttons (#110);resetForm
(#114);<Input multiline />
instead (#59);onSubmit
receives a second argument with helpers (only resetForm for now):function handleSubmit(data, { resetForm }) {}
registerField
now includes two new properties:
parseValue
: Function used to parse value to send to submit;clearValue
: Function used to clear form element value;react-select
;getValue
doesn't exists anymore, all values should be captured by element reference;