The core concepts of Redux are closely tied to a framework known as Flux. Both share the same concept of a one-way flow of data and a centralized store to reduce actions into the application’s next state. While Flux was designed as a general pattern which one could follow to build applications, Redux is a library that provides concrete methods to help implement the framework.
To make use of the Redux package, it can be installed using the Node Package Manager (
npm). Then, its methods can be imported.
Let’s start by installing the
redux package and importing its
createStore() method. In the next exercise you’ll learn how to use this method.
In the bash terminal enter the following command for installing the
redux package using NPM.
npm install redux