The Redux store is responsible for updating the information that is calculated on the state inside reducers. It is a single global object, which can be accessed via the store's getState method.
In this recipe, we'll tie together the actions and the reducer we created in previous recipes. We will use the existing actions to affect data that lives in the store. We will also learn how to log changes on the state by subscribing to the store changes. This recipe serves more as a proof of concept of how actions, reducers, and the store work together. We'll dive deeper into how Redux is more commonly used within apps later in this chapter.