Lab 33 - edpuzino/class GitHub Wiki
Lab 33
Actions
Actions are JSON objects that contain information about changes that need to be made to state. They can be dispatched by various parts of your application, and they are received by the store.
Actions are produced by functions called action creators.
Store
The store holds the whole state our application. It can dispatch actions and it receives actions that are dispatched to it. However, the store doesn't want to handle the dispatched actions and actually enact changes to state. For that, we use reducers.
Reducers
The store passes dispatched actions to reducers, which receive the actions and make the appropriate changes to state.
Components
Components are the presentation, or view, layer of our application. Certain components, the parent or container components, will be connected to our store. Those components will be alerted whenever a change to state has been made by a reducer. Those components will then re-render, with new properties as dictated by the changes made to application state.