The Redux Library
Let's explore the Redux library and its three principles.
What is Redux?
Redux is a state container for JavaScript apps.
It is closely linked to the React framework, but it can and is being used by other JavaScript frameworks, including Angular. If we go to the ReduxJS website, we’ll see that there are a set of principles that Redux has.
These principles have also been implemented in NgRx. We will look at how NgRx has implemented these principles later. First, let’s discuss these principles.
The principles of Redux
There are three principles of Redux:
Now, let’s explore each of these in turn to get a better understanding of what each means.
Single source of truth
In the Redux approach, the state of the application is known as the single source of truth.
This means that the state of the application is ...