UNPKG

@modular-forms/react

Version:

The modular and type-safe form library for React

12 lines (11 loc) 240 B
/** * Returns the store of a field. * * @param form The form of the field. * @param name The name of the field. * * @returns The reactive store. */ export function getFieldStore(form, name) { return form.internal.fields[name]; }