Use a Custom Input Component as a redux-form Field
We can pass a custom component to redux-form’s
Field component. This way, we have a great deal of control over what gets rendered as part of the field (the type of input, label etc), and re-use this component for other fields of the form. We can use the
input prop, provided to us by redux-form, to easily hook our input field up to redux.