mirror of
https://github.com/microsoft/frontend-bootcamp.git
synced 2026-01-26 14:56:42 +08:00
adding demo for step 2-6
This commit is contained in:
5
step2-06/exercise/src/actions/index.ts
Normal file
5
step2-06/exercise/src/actions/index.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import uuid from 'uuid/v4';
|
||||
|
||||
export const actions = {
|
||||
addTodo: (label: string) => ({ type: 'addTodo', id: uuid(), label })
|
||||
};
|
||||
Reference in New Issue
Block a user