Created
April 1, 2022 00:26
-
-
Save LiorB-D/6206000cc36b14003f8c237de8b08b20 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
import * as actionTypes from './actionTypes'; | |
export const createToDo = (todo) => { | |
return { | |
type: actionTypes.CREATE_NEW_TODO, | |
todo: todo | |
} | |
}; | |
export const deleteToDo = (id) => { | |
return { | |
type: actionTypes.REMOVE_TODO, | |
id: id | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment