simple-redux-form
Version:
This is simplest redux form
29 lines (24 loc) • 487 B
JavaScript
import { INITIALIZE, DESTROY, SET_FIELD, TOUCH_ALL } from './actionTypes';
export function initialize(initialValue, form, fields) {
return {
type: INITIALIZE,
initialValue,
form,
fields
};
}
export function setField(field, value, form) {
return {
type: SET_FIELD, field, value, form
};
}
export function touchAll(form, fields) {
return {
type: TOUCH_ALL, form, fields
};
}
export function destroy(form) {
return {
type: DESTROY, form
};
}