Dispatching actions to retrieve a user input or delete an item off a list allow apps to be dynamic, but what happens when you want to load data into your app from your api server or from a third-party api?
There are several ways to implement asynchronous requests in a Redux application. First, let’s talk about where you make the request itself. Should it be made in a reducer or in an action creator? The answer is in the action creator, but let’s look at why you wouldn’t want to make an async request in a reducer.
Simply put, reducers…
We’ll start where we left off by creating the scripts that define Gulp’s build process and how it should handle the files in our project. To get caught up to speed on installing Gulp, see part 1.
Navigate to the root directory of your project and create a file called Gulpfile.js. Before writing any scripts, we’ll need to expose our Gulpfile to the software packages we installed in part 1. Let’s install a package that will enable us to do this, called Browserify. In the command line, type:
npm install — save-dev browserify
At the top of your Gulpfile, write:
If you already know what gulp is and understand its benefits, skip down to Installation.
What is a build tool and what is Gulp? Why should I care? Let’s identify some common pain points for beginning developers who have not been introduced to build tools.
Front End Engineer