We will start by creating an action creator, a helper function that helps us create actions:
// dataflow/actions.js
export function createItem(title){
return { type: "CREATE_ITEM", payload: { title: title } };
}
We will start by creating an action creator, a helper function that helps us create actions:
// dataflow/actions.js
export function createItem(title){
return { type: "CREATE_ITEM", payload: { title: title } };
}
3.133.142.193