- React Components
- Christopher Pitt
- 169字
- 2021-07-09 19:34:44
Why components?
Component-based design is powerful, especially when we use immutable data and unidirectional data flow. It forces me to stop thinking about how different technologies or tools interact. It gets me thinking about the single most important function of each interface element.
When we start building an application, it's tempting to think of every piece as part of the whole. All interface elements blend into the same big picture, until it becomes so big that separating parts of it out seems impossible.
Imagine you had to build a space ship. What a huge task! You'd need some rocket boosters, a couple of wings, life support, and so on. Now consider how you would approach it if one of the constraints was that each moving part of the space ship would need to be inpidually tested.
Testing is the great pide between designing systems as a whole and designing systems as large collections of small pieces. Component-based design is fantastic because it makes sure that every part is testable.
- 實用防銹油配方與制備200例
- 跟老齊學Python:輕松入門
- QGIS:Becoming a GIS Power User
- jQuery Mobile移動應用開發實戰(第3版)
- C++從入門到精通(第5版)
- 代替VBA!用Python輕松實現Excel編程
- Visual Basic程序設計全程指南
- HTML5移動Web開發
- Web前端開發最佳實踐
- JavaScript前端開發基礎教程
- Go Systems Programming
- 從零開始學Unity游戲開發:場景+角色+腳本+交互+體驗+效果+發布
- 跟小樓老師學用Axure RP 9:玩轉產品原型設計
- Learning ROS for Robotics Programming
- 計算機應用基礎