Added exercises

This commit is contained in:
Ken
2019-03-02 23:22:09 -08:00
parent 46b89ff90b
commit 5b14d792f8
27 changed files with 271 additions and 478 deletions
+6 -1
View File
@@ -1,5 +1,10 @@
import uuid from 'uuid/v4';
export const actions = {
addTodo: (label: string) => ({ type: 'addTodo', id: uuid(), label })
addTodo: (label: string) => ({ type: 'addTodo', id: uuid(), label }),
remove: (id: string) => ({ type: 'remove', id }),
complete: (id: string) => ({ type: 'complete', id }),
clear: () => ({ type: 'clear' }),
setFilter: (filter: string) => ({ type: 'setFilter', filter }),
edit: (id: string, label: string) => ({ type: 'edit', id, label })
};