DEV Community

Alim Mohammad
Alim Mohammad

Posted on

Breaking Down Redux

Redux might be the hot catchword used with React or in general MERN based applications, highlighted as the goto state management tool.

Before moving further, it becomes a priority to understand what actually is a state. State can be defined as a simplistic JS Object that holds information accessible to all the components in an application.

Example - State

state = {
username: '',
password: '',
result: '',
status: 1
}

Features of Redux

  1. Transparent: Redux is transparent in a sense that all the information the state holds must me explicitly available to other components of the application. In programmatic words, it is indeed 'global', that must make pretty clear top understand the purpose of Redux.

  2. Independent: Redux does not require a user interface to rely on thus, giving the developer an independent experience.

  3. Supportability: Redux has a toolkit named react-redux that is built on top of both the libraries and provides an abstract layer over redux to make the job easier for developer community.

  4. Easy to learn: Being a newbie with a mountain of terminologies can be daunting but with more practice and understandability, redux ( or redux toolkit ) can be learned gradually.

Top comments (0)