Created
May 31, 2019 22:18
-
-
Save Danielshow/2b1c6012eaf357a0eb46710f0b35c61e to your computer and use it in GitHub Desktop.
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 Types = { | |
ADD_TODO: 'ADD_TODO', | |
DELETE_TODO: 'DELETE_TODO' | |
} | |
export const addTodo = (todo) => ({ | |
type: Types.ADD_TODO, | |
payload: todo | |
}) | |
export const deleteTodo = (id) => ({ | |
types: Types.DELETE_TODO, | |
payload: id | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment