Formik has support for nested objects and arrays out of the box. These subjects are somewhat related because they both leverage the same syntax.
name props in Formik can use lodash-like dot paths to reference nested Formik values. This means that you do not need to flatten out your form's values anymore.
Formik also has support for arrays and arrays of objects out of the box. Using lodash-like bracket syntax for
name string you can quickly build fields for items in a list.
For more information around manipulating (add/remove/etc) items in lists, see the API reference section on the
If you want to avoid this default behavior Formik also has support for it to have fields with dots.