2 min read

Introduction to Redux You Should Know

Redux is the popular JavaScript library that is used to manages the state of your web applications. State is nothing but an object that holds data which you use in building your apps.
Introduction to Redux You Should Know

If you are working with react then you guys must have heard about the redux. If you are new to redux then don't worry by the end of this blog you will have the basic knowledge of what is redux and why we are using it so far.

Source: https://miro.medium.com/max/3610/1*81uqJUFs_dNwijDAUtAo1A.png

Why we use it: Big applications have many states and to manage them is much more difficult because our application is made up of components and it works in unidirectional way i.e data passes from the parent component to child components which uses same data so, we need to move on redux.

Before  starting learning how redux works, I want to mention that redux follows two crucial patterns.

First pattern is "Single Source Of Truth" and by this what i mean that we have only one place called Store where we store the only state for the whole application.

Another pattern is "immutability" i.e we don't change the state object directly instead we need to create new state and update it in the object.

How It Works:

Source:https://miro.medium.com/max/1823/1*BZQ8FPvJWhRBXOEd3n9Yhw.png

Redux has three parts actions, reducers and store.so you just need to understand the concept of these three then it will be so simple for you and you are going to love using redux. Take a look :- https://redux.js.org/tutorials/fundamentals/part-3-state-actions-reducers.

I hope you guys enjoy reading this. Thank you!!

Read more...

Redux Fundamentals, Part 3: State, Actions, and Reducers | Redux
The official Redux Fundamentals tutorial: learn how reducers update state in response to actions

#ReduxFundamentals #Data #DataScience #DataAnalytics #Technology #PROBYTO

Subscribe & Follow us for latest in field of AI & Tech and stay updated!
Facebook: https://facebook.com/probyto
Twitter: https://twitter.com/probyto
LinkedIn: https://linkedin.com/company/probyto
Instagram: https://instagram.com/probyto