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

Summary

We set out trying only to explain the Flux architecture pattern. It would have been very easy to start mentioning how it fits with React and how there are nice libraries and tools that support Flux and React. That would, however, have taken our focus away from explaining the pattern from a more framework-agnostic viewpoint. Therefore, the rest of this chapter set out to explain core concepts such as actions, action creator, dispatcher, store, and uniform data flow. Little by little, we improved the code to start using constants, action creators, and a nice supporting library such as EventEmitter. We explained how HTTP fits into this and, lastly, we discussed how we could build out our application. There is a lot more that can be said about Flux, but we chose to limit the scope to understanding the fundamentals so we can compare its approach as we dive into Redux and NgRx in later chapters, which is the main focus of this book.

主站蜘蛛池模板: 南皮县| 南澳县| 哈巴河县| 大兴区| 天峻县| 奎屯市| 巴塘县| 富裕县| 云南省| 浮山县| 海南省| 泰州市| 田阳县| 长岭县| 比如县| 万荣县| 旬阳县| 黄浦区| 唐河县| 台中县| 方正县| 威海市| 和静县| 卢龙县| 孙吴县| 德州市| 安福县| 兰考县| 察隅县| 福泉市| 吴忠市| 皮山县| 新源县| 雷波县| 封开县| 荔浦县| 临沧市| 湛江市| 南宁市| 东明县| 桦甸市|