In v6 of redux-form we can show the errors for normal input fields like following
We can create custom renderField like this
const renderField = ({ input, label, type, meta: { touched, error } }) => (
<div>
<label>{label}</label>
<div>
<input {...input} placeholder={label} type={type}/>
{touched && error && <span>{error}</span>}
</div>
</div>
)
And in the form, just we can use that custom renderField
<Field name="username" type="text" component={renderField} label="Username"/>
Now i need to know, How we can do this same for select field, and how should we pass dropdown options to this custom renderFields, Any idea to create custom renderField for select ?