Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export const addTodo = (todo: any) => {
- return {
- type: ADD_TODO,
- payload: {
- todo: todo,
- }
- }
- }
- export const finishTodo = (index: number) => {
- return {
- type: FINISH_TODO,
- payload: {
- index: index,
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement