score:0

you are confusing v5 syntax with v6 syntax. in v6, your decorated form component is no longer passed this.props.fields. re-read the migration guide, like @tyler-iguchi said.

score:2

there were breaking changes in redux-forms from v5 to v6. previously you could do something similar to what you have to access the touched field. if you want to do something similar to see if there are errors on a field, you need to create your own component to pass to redux-form's field component.

your custom component

const customcomponent = function(field) {
  return (
    <div>
      <input
        type={field.type}
        {...field.input}
        />
      {field.meta.touched && field.meta.error && <div classname='error'>{field.meta.error}</div>}
    </div>
  )
}

then using it with the field component

<field name="my-prop" component={customcomponent} />

also take a look at the migration guide, hope this helps!


Related Query

More Query from same tag