- 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.
- Python機器學習:數據分析與評分卡建模(微課版)
- Go語言高效編程:原理、可觀測性與優化
- JIRA 7 Administration Cookbook(Second Edition)
- Functional Kotlin
- Android 應用案例開發大全(第3版)
- Mastering Ext JS
- 軟件項目管理實用教程
- Illustrator CS6設計與應用任務教程
- Practical GIS
- Building UIs with Wijmo
- Joomla!Search Engine Optimization
- Apache Solr for Indexing Data
- Mastering Python
- INSTANT Lift Web Applications How-to
- Laravel 5.x Cookbook