Skip to content

Instantly share code, notes, and snippets.

@christiannwamba christiannwamba/action.js Secret
Created Nov 15, 2017

Embed
What would you like to do?
// The action
{
type: ADD_USER,
payload: {
username: ‘Chris’,
email: ‘redux @frameworks.io
}
}
// The function that creates the action
function signUpUser(data) {
return {
type: ADD_USER,
payload: data
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.