此示例演示如何将 Formik 与复选框组一起使用。鉴于所有字段都共享相同的 name,Formik 会自动将它们绑定到单个数组。
name
¥This example demonstrates how to use Formik with a checkbox group. Given that the fields all share the same name, Formik will automagically bind them to a single array.