Final Form
Installation
yarn add @prestojs/final-form final-form react-final-form
Default Values
Default values can be specified at the field level with FormField (either explicitly with defaultValue
or implicitly from field.defaultValue
) or with initialValues
passed to Form. For more
details see the final-form defaultValue and initialValues
documentation.
Defining field defaults can be done on the view model by passing the defaultValue
option to Field. This can either be
a function that returns a value (useful for returning dynamic like the current time) or a static value directly.