Creating the action

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 } };
}
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.133.142.193