Skip to content

Instantly share code, notes, and snippets.

@christiannwamba
Created November 15, 2017 22:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save christiannwamba/182d7dc382116250c4b758cb7dd4329c to your computer and use it in GitHub Desktop.
Save christiannwamba/182d7dc382116250c4b758cb7dd4329c to your computer and use it in GitHub Desktop.
// 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