Step 8: combine reducers

This commit is contained in:
Ken
2019-02-17 18:12:26 -08:00
parent eb620843b9
commit 279a43fb35
16 changed files with 394 additions and 14 deletions

View File

@@ -0,0 +1,5 @@
export const addTodo = (label: string) => ({ type: 'addTodo', label });
export const remove = (id: string) => ({ type: 'remove', id });
export const complete = (id: string) => ({ type: 'complete', id });
export const clear = () => ({ type: 'clear' });
export const setFilter = (filter: string) => ({ type: 'setFilter', filter });