Sending notifications to an API via Redux
In the preceding section, we focused on how to access an API and pull its data into the Redux store. In this section, we will focus on how to send data from our Redux application to an API.
Note that in this section, we will only cover the Redux implementation. Additional React components need to be created to implement these features. If you want to practice using React with Redux, feel free to implement these yourself; otherwise, you can use the template in chapter6_3.zip
. Unpack the zip, change into the directory, and run npm install
 to install the dependencies. You will see that the template already works. However, all changes are only made on the client and not persisted to the backend server/database.
Using asynchronous action creators
The most common way to send data from a Redux application to an API is by dispatching an asynchronous action creator directly with the user input. We have already discussed how to dispatch asynchronous actions....