mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
Step 8: combine reducers
This commit is contained in:
5
step2-08/src/actions/index.ts
Normal file
5
step2-08/src/actions/index.ts
Normal 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 });
|
||||
Reference in New Issue
Block a user