update docs

This commit is contained in:
Ken
2019-02-20 11:08:33 -08:00
parent 80da2f0566
commit a7acac3ede
64 changed files with 47410 additions and 89 deletions

View File

@@ -0,0 +1,9 @@
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' }),
setFilter: (filter: string) => ({ type: 'setFilter', filter })
};