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.
I started learning JavaScript over a year ago. After completing codecademy and codeschool’s JavaScript courses, I was eager to take my newly developed skills to the next level. The biggest problem with online self-paced courses is taking what you’ve learned and applying it to a real application. I finally put my beginner JavaScript skills to use after joining Thinkful’s full-time Frontend Development bootcamp.
However, as every developer knows, there’s a lot of necessary work that goes into building the front end of an app aside from just coding in JavaScript (setting up build tools and automation, building a non-interactive version…
Front End Engineer