How to change a field in a redux-form?
问题 In my react component I am trying to set a field called 'total'. I have imported the change action as a prop into my component: import React, { Component, Fragment } from 'react' import { Field, FieldArray, reduxForm, getFormValues, change } from 'redux-form' import { connect } from 'react-redux' import { CalcTotal } from './calculationHelper'; const renderField = ({ input, label, type, meta: { touched, error } }) => ( <div> <label>{label}</label> <div> <input {...input} type={type}