I am using redux-form 6.0.0-rc.5 and I am trying to display the form values as they are entered by the user.
However, I want these values to be displayed from anothe
Starting from redux-form 6.0.0
(and still the same in 7.0.0
), you can use the function formValueSelector()
to select values from any redux form you have in your application: http://redux-form.com/7.0.0/docs/api/FormValueSelector.md/
import { connect } from 'react-redux';
import { formValueSelector } from 'redux-form';
const selector = formValueSelector('formName');
List = connect(
state => ({
name: selector(state, 'name')
})
)(List)