adding exercise for step 7

This commit is contained in:
Ken
2019-02-19 23:15:43 -08:00
parent 72ace4f43c
commit f046a07694
28 changed files with 422 additions and 61 deletions

View File

@@ -0,0 +1,8 @@
import uuid from 'uuid/v4';
export const actions = {
addTodo: (label: string) => ({ type: 'addTodo', id: uuid(), label }),
remove: (id: string) => ({ type: 'remove', id }),
complete: (id: string) => ({ type: 'complete', id }),
clear: () => ({ type: 'clear' })
};