官术网_书友最值得收藏!

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.

主站蜘蛛池模板: 商水县| 米脂县| 鹤岗市| 青冈县| 昆明市| 郓城县| 仙游县| 东乡族自治县| 永寿县| 上林县| 图木舒克市| 个旧市| 宿州市| 科技| 信阳市| 伊吾县| 绥德县| 图木舒克市| 舞阳县| 连江县| 诸城市| 吴川市| 华宁县| 财经| 祁连县| 措美县| 云浮市| 闻喜县| 汝州市| 兴仁县| 麻栗坡县| 呼图壁县| 读书| 永福县| 寿阳县| 温宿县| 宁乡县| 湛江市| 当阳市| 肇源县| 城固县|