mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding some redux steps
This commit is contained in:
3
step2-06/src/actions/index.ts
Normal file
3
step2-06/src/actions/index.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
export const addTodo = (label: string) => ({ type: 'addTodo', label });
|
||||
export const remove = (id: string) => ({ type: 'remove', id });
|
||||
export const complete = (id: string) => ({ type: 'complete', id });
|
||||
Reference in New Issue
Block a user