How to set defaultValue to input component?
<
This jsfiddle has an example
https://jsfiddle.net/bmv437/75rh036o/
const renderMembers = ({ fields }) => (
Members
{fields.map((field, idx) => (
First Name
Last Name
))}
);
const Form = () => (
);
const MyForm = reduxForm({
form: "foo",
initialValues: {
members: [{
firstName: "myFirstName"
}]
}
})(Form);