Skip to Content
Learn
Intro to the Core Redux API
Install the Redux Library

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.

Instructions

1.

In the bash terminal enter the following command for installing the redux package using NPM.

npm install redux
2.

In the store.js file use ES6 import syntax and import the createStore method from the redux package:

import { createStore } from 'redux';
Folder Icon

Take this course for free

Already have an account?