August 2017
Beginner
374 pages
10h 41m
English
For synchronous actions, we simply returned an action object from our action creator. A synchronous action creator to fetch posts could look like this:
export const fetchPosts = (posts) => { return { type: 'FETCH_POSTS', posts: posts }}
Now, we will handle asynchronous operations by dispatching multiple actions from an action creator.
Read now
Unlock full access