Wrapping UI components to use with Redux Form, and use custom onChange event functions
问题 The following is a custom dropdown menu that I would like to make compatible with Redux Form, as well as execute custom onChange function (e.g.: dispatch an action) <Select label='Team' name='team' options={teamOptions} placeholder='Team' onClick={this.handleTeamClick} /> In a first step, I created the wrapper as follows: export const rfSelect = ({ input, options, meta, ...rest }) => ( <Select {...input} onChange={(e,v) => input.onChange(v.value)} options={options} {...rest} /> ) where the