What Is Redux? - How does it Work?
Morshedul Islam Munna
Software Engineer ???|| Golang ? JavaScript/Typescript ? ReactJs/NextJs ? NodeJS ? CI/CD ? Docker ? Typesence ? PostgreSQ ? MongoDb ??°??
What Is Redux?
Redux is simply a store to store the state of the variables in your app. Redux creates a process and procedures to interact with the store so that components will not just update or read the store randomly. Similar to the bank. It does not mean because you have money in the bank that you can go anytime, open the vault, and take money. You have to go through certain steps to withdraw money.
Principles of Redux
Single Source of Truth?
The state of your whole application is stored in an object tree within a single store.
State Is Read-Only
Changes are Made with Pure Functions