DEV Community

Alim Mohammad
Alim Mohammad

Posted on

1

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.

Postmark Image

Speedy emails, satisfied customers

Are delayed transactional emails costing you user satisfaction? Postmark delivers your emails almost instantly, keeping your customers happy and connected.

Sign up

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay