Advertisement
Guest User

Untitled

a guest
Jul 20th, 2019
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. export const addTodo = (todo, dispatch) => {
  2. dispatch({
  3. type: 'ADD_TODO',
  4. todoText: todo,
  5. })
  6. }
  7.  
  8. export const removeTodo = (todoId, dispatch) => {
  9. dispatch({
  10. type: 'REMOVE_TODO',
  11. todoId,
  12. })
  13. }
  14.  
  15. export const editTag = (todoId, tag, dispatch) => {
  16. dispatch({
  17. type: 'EDIT_TODO_TAG',
  18. todoId,
  19. tag,
  20. })
  21. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement