using antd with redux-form

Viewed 6711

I'm trying to use ant.design react components with my redux-form, so far it goes something like this:

import { Form, Input } from 'antd';
import { Field, reduxForm } from 'redux-form/immutable';
const FormItem = Form.Item;

.....

<FormItem>
  <Field
     component={Input}
     placeholder="First Name"
     name="name"
  />
</FormItem>

seems like antd form inputs don't support name attribute, they ignore and prevent to pass it down.

name attribute is needed for redux-form to be working.

does anyone had success to get these 2 working together? thank you.

2 Answers
Related