在Redux表单中构建材质UI TextField组件

时间:2017-03-17 16:53:43

标签: reactjs react-redux material-ui redux-form

有人可以告诉我如何使用Redux Form WITHOUT {...input}来构建TextField组件,例如:

const renderTextField = ({ input, label, meta: { touched, error }, ...custom }) => (
  <TextField hintText={label}
    floatingLabelText={label}
    errorText={touched && error}
    {...input}
    {...custom}
  />
)

由于输入变量中的一些错误,Field无法得到任何关注,我无法弄清楚如何使用输入方法和值构建组件来解决错误(可能)。请帮忙! :(

0 个答案:

没有答案