Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const addTodo = (todo, dispatch) => {
- dispatch({
- type: 'ADD_TODO',
- todoText: todo,
- })
- }
- export const removeTodo = (todoId, dispatch) => {
- dispatch({
- type: 'REMOVE_TODO',
- todoId,
- })
- }
- export const editTag = (todoId, tag, dispatch) => {
- dispatch({
- type: 'EDIT_TODO_TAG',
- todoId,
- tag,
- })
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement