showing results for - "getformvalues"
Karyn
12 Jan 2018
1
2import {
3  getFormValues,
4  isDirty,
5  isPristine,
6  isValid,
7  isInvalid
8} from 'redux-form'
9
10MyComponent = connect(
11  state => ({
12    values: getFormValues('myForm')(state),
13    dirty: isDirty('myForm')(state),
14    pristine: isPristine('myForm')(state),
15    valid: isValid('myForm')(state),
16    invalid: isInvalid('myForm')(state)
17  })
18)(MyComponent)
19