一、Actions
1. Actions are payloads of information that send data from your application to your store. They are the only source of information for the store. You send them to the store using store.dispatch().
(Actions 是从应用程序发送到存储的信息的有效承载。它们是存储的唯一信息来源。使用store.dispatch()方法将它们发送到存储中)
2. Action creators are exactly that—functions that create actions. It's easy to conflate the terms “action” and “action creator”, so do your best to use the proper term.
(Action creators 是创建Actions的函数)
二、Reducers
1. Reducers specify how the application's state changes in response to actions sent to the store. Remember that actions only describe what happened, but don't describe how the application's state changes.
(Reducers指定应用程序的状态如何更改以响应发送到存储的操作。请记住,操作只描述发生了什么,而不描述应用程序的状态如何变化。)
2. The reducer is a pure function that takes the previous state and an action, and returns the next state.
(reducer是一个纯函数,它接受前一个状态和一个动作,并返回下一个状 态。)
(previousState, action) => newState