The Redux API is very small, and actually only consists of a handful of functions. What makes Redux so powerful is a certain set of rules that are applied to your code when using the library. These rules allow for the writing of scalable applications that are easy to extend, test, and debug.
Redux is based on three fundamental principles:
- Single source of truth
- Read-only state
- State changes are processed with pure functions