Module 03 · In-depth Understanding of Advanced React Functionality深入理解 React 高级功能
Lesson 2 Summary: Application State Management with Redux第 2 课总结:使用 Redux 管理应用状态
Congratulations! You have completed this lesson. At this point in the course, you know that:
恭喜!你已经完成了这个课程。在这个课程阶段,你知道:
- The Redux elements involved in updating the component properties include actions, the Store, and reducers.
Redux 中涉及更新组件属性的元素包括 actions、Store 和 reducers。 - Redux makes use of the entire application's states as opposed to using component states.
Redux 使用整个应用程序的状态,而不是使用组件状态。 - Within Redux, the existing application states reside within an object known as the store.
在 Redux 中,现有的应用程序状态位于一个称为 store 的对象中。 - You use action objects to communicate to the store what data you need to update and use reducers to tell the application how to make the update.
您使用动作对象来告知商店需要更新哪些数据,并使用 reducer 来告诉应用程序如何进行更新。 - Reducers are pure functions that receive the current state and an action object and return a new state with the actions performed.
还原器是接收当前状态和动作对象并返回执行了动作的新状态的纯函数。 - Synchronous operations run in a first-to-last sequence, beginning the next operation only after the previous one has finished.
同步操作按从第一个到最后一个的顺序运行,只有在上一个操作完成后才开始下一个操作。 - Asynchronous operations can occur in parallel. They don't require the previous operation to be completed before beginning the next.
异步操作可以并行发生。它们不需要在开始下一个操作之前完成上一个操作。