createFormStore
Creates and returns the store of the form.
const form = createFormStore<Values>(options);
Generic
ValuesFieldValuesResponseDataMaybe<ResponseData> =undefined
Explanation
If you use TypeScript, you should define your field values. This way the library knows exactly which fields your form has and what values they expect. It also allows autocompletion and TypeScript notifies you of typos.
It is recommended to use
typeinstead ofinterfaceas this currently requires an explicit index signature in TypeScript. More about this here.
Parameter
optionsMaybe<FormOptions>
Return
formFormStore