how to use form.setFields in checkbox
form.setFieldsValue({ add: true });
<Form.Item name="add">
<Checkbox>Add</Checkbox>
</Form.Item>
<Form.Item name="add">
<Checkbox>Add</Checkbox>
</Form.Item>
value (which is the default valueProp the Form.Item passes to the child) but its using setFieldsCheckboxcheckedvaluePropName="checked"form.setFieldsValue({ add: true });