
上QQ阅读APP看书,第一时间看更新
Redux saves the new state
The main reducer function returns the new state, which is computed from the previous state and the action. The new state object is saved in the Redux store and all listener functions that are subscribed via store.subscribe() get called. This is when the user interface gets updated (re-rendered), but more about that in Chapter 3, Combining Redux with React, where we will discuss rendering user interfaces with React.