Skip to content

Instantly share code, notes, and snippets.

Created Nov 15, 2017
What would you like to do?
// The action
type: ADD_USER,
payload: {
username: ‘Chris’,
email: ‘redux’
// 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