Redux
"Good morning, Shawn," started Mike.
"Good morning, Mike. What are we working on today?"
"Ah, yesterday, we worked with Flux. It was to introduce you to the basics of Flux. In most of our projects, we used something similar to it in order to manage the state in the apps."
"Today, we will see how to use Redux."
"Cool."
"As stated at https://github.coktreactjs/redux, Redux is a predictable state container for JavaScript apps. It's kind of what we implemented previously."
"With Redux, we maintain a single state tree for the complete application and add reducers to enhance the state of the store. Previously, we were directly mutating the value of _state
and then notifying the subscribers about the change. Let's take a look at our app setup to get started with, as follows:"
├── actions
│ └── social.js
├── components
│ └─...