lundi 20 septembre 2021

How ```valuePropName``` Works?

I have a form with checkBox component. But when I submit the form whithout valuePropName . The checkBox value is undefined

<Form.Item name="remember" valuePropName="checked">
          <Checkbox>Remember me</Checkbox>
        </Form.Item>

I get the value when valuePropName is setted.

I'd like to know the why and how valuePropName whorks.




Aucun commentaire:

Enregistrer un commentaire