- Flux Architecture
- Adam Boduch
- 202字
- 2021-07-16 10:49:03
Summary
This chapter introduced you to the driving principles of Flux. These should be in the back your mind as you work on any Flux architecture. We started the chapter off with a brief retrospective of MV* style architectures that permeate frontend development. Some challenges with this style of architecture include cascading model updates and a lack of data-flow direction. We then looked at the prize concept of Flux—unidirectional data-flow.
Next, we covered how Flux favors explicit actions over implicit abstractions. This makes things easier to comprehend when reading Flux code, because we don't have to go digging around for the root cause of a state change. We also looked at how Flux utilizes architectural layers to visualize how data-flows in one direction through the system.
Finally, we compared application data with state that's generally considered specific to UI elements. Flux stores tend to focus on state that's relevant to the feature it supports, and doesn't distinguish between application data and UI state. Now that we have a handle on the principles that drive Flux architectures, it's time for us to code one. In the next chapter, we'll implement our skeleton Flux architecture, allowing us to focus on information design.
- 微服務設計原理與架構
- 面向STEM的Scratch創新課程
- 編寫高質量代碼:改善C程序代碼的125個建議
- Apex Design Patterns
- 基于Struts、Hibernate、Spring架構的Web應用開發
- Emgu CV Essentials
- Instant Apache Camel Messaging System
- SQL Server實例教程(2008版)
- Flask開發Web搜索引擎入門與實戰
- React and React Native
- 詩意的邊緣
- Web前端開發精品課:HTML5 Canvas開發詳解
- XML程序設計案例教程
- Java編程方法論:響應式RxJava與代碼設計實戰
- Vue.js+Node.js開發實戰:從入門到項目上線