I currently have:
let renderEmailField = ({input, label, type, meta: {touched, error, pristine}}) =>
<div>
<label>{label}</label>
<Form.Input {...input} type={type} placeholder={'name@example.com'} />
{touched && error && <span className="form-control-feedback">{error}</span>}
</div>
How can I update the above to not require to surrounding DIV?, something like:
let renderEmailField = ({input, label, type, meta: {touched, error, pristine}}) =>
<label>{label}</label>
<Form.Input {...input} type={type} placeholder={'name@example.com'} />
{touched && error && <span className="form-control-feedback">{error}</span>}