What is Redux?

Sandie Nuñez
1 min readMay 24, 2021

--

Redux is a state container for JavaScript apps and is used for the state management of apps. Apps made using Redux are easy to test in various environments. The main concern is a deep understanding of state and store.

3 principles that Redux follows:
1. The Single source
of truth principle is when the state of all the app is stored in an object inside the store. This single state tree helps the user manage and detect changes and bugs.

2. State is read-only. To change the state one must trigger an action. An action is a Javascript object that describes the change. The action shows the least amount of data change.

3. Changes are made with pure functions:
Pure functions help you specify how the state tree is changed by actions of others. Pure functions have return value that depend on the values of their arguments.

--

--

Sandie Nuñez
Sandie Nuñez

Written by Sandie Nuñez

0 Followers

Software Engineer

No responses yet