Created
May 27, 2019 02:20
-
-
Save toruticas/6be07f062842d5408e7371d28d456b9e to your computer and use it in GitHub Desktop.
Redux Architecture Example (actions)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const changeInputValue = value => ({ | |
type: 'CHANGE_INPUT_VALUE', | |
value, | |
}); | |
export const addItem = item => ({ | |
type: 'ADD_ITEM', | |
item, | |
}); | |
export const removeItem = id => ({ | |
type: 'REMOVE_ITEM', | |
id, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment