ennvlxkm
5 months ago  Karma: 761
Should I invest time in learning Redux?

I'm looking to use React for my front-end. While doing my research, I noticed that the large majority of React apps do use Redux.
However, it looks complex and the learning curve seem to be quite steep.
Should I invest time in learning Redux?

en
#javascript
framework
redux
ennvlxkm
5 months ago  Karma: 761
Should I invest time in learning Redux?

I'm looking to use React for my front-end. While doing my research, I noticed that the large majority of React apps do use Redux.
However, it looks complex and the learning curve seem to be quite steep.
Should I invest time in learning Redux?

en
#javascript
framework
redux

ONE ANSWER
alain_duclos9952
5 months ago Karma: 206

Redux provides one global state and allows developers to easily manage the state and maintain a global view of the application.

It is comprised of three components:

The store: the part that actually holds the global state.
Reducers: pure functions that change the store. Reducers do not modify the store. Instead, reducers make a copy of the old store and return a new one. Thus, the global store is immutable. Reducers are pure functions that are called with two arguments: the previous state and the action that needs to be performed.
Actions: are objects that allow reducers to perform modifications depending on each actions' state.

While Redux is a small library and its documentation is great, it still has a steep learning curve.
I think you should give it a try. Even if the benefits are not obvious for a small application, it is likely that in the future you will need to add more and more functionalities. Without Redux, you'll likely get lost in a mess of unintended state modifications.

Redux provides one global state and allows developers to easily manage the state and maintain a global view of the application.

It is comprised of three components:

The store: the part that actually holds the global state.
Reducers: pure functions that change the store. Reducers do not modify the store. Instead, reducers make a copy of the old store and return a new one. Thus, the global store is immutable. Reducers are pure functions that are called with two arguments: the previous state and the action that needs to be performed.
Actions: are objects that allow reducers to perform modifications depending on each actions' state.

While Redux is a small library and its documentation is great, it still has a steep learning curve.
I think you should give it a try. Even if the benefits are not obvious for a small application, it is likely that in the future you will need to add more and more functionalities. Without Redux, you'll likely get lost in a mess of unintended state modifications.

Earn tokens by posting and answering questions about blockchain!
Karma to eth
YOUR ANSWER