Last active
September 23, 2016 03:32
-
-
Save ManuelDeLeon/78b8124b1b6390241bcb6ea1dc2ef9f7 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
let nextTodoId = 0 | |
export const addTodo = (text) => ({ | |
type: 'ADD_TODO', | |
id: nextTodoId++, | |
text | |
}) | |
export const setVisibilityFilter = (filter) => ({ | |
type: 'SET_VISIBILITY_FILTER', | |
filter | |
}) | |
export const toggleTodo = (id) => ({ | |
type: 'TOGGLE_TODO', | |
id | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment