Instantly share code, notes, and snippets.

@kasprownik /actions.js Secret
Last active Jan 29, 2016

Embed
What would you like to do?
// src/actions.js
import * as c from './constants';
export function update(name, value) {
return dispatch => dispatch({
type: c.FORM_UPDATE_VALUE,
name, value
});
}
export function reset() {
return dispatch => dispatch({
type: c.FORM_RESET
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment