- 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快樂編程:人工智能深度學習基礎
- Learning RabbitMQ
- INSTANT Mercurial SCM Essentials How-to
- Learning Salesforce Einstein
- Cybersecurity Attacks:Red Team Strategies
- Python圖形化編程(微課版)
- C語言程序設計簡明教程:Qt實戰
- Vue.js應用測試
- Serverless Web Applications with React and Firebase
- SQL Server 2016 從入門到實戰(視頻教學版)
- Building Dynamics CRM 2015 Dashboards with Power BI
- 從程序員角度學習數據庫技術(藍橋杯軟件大賽培訓教材-Java方向)
- Python硬件編程實戰
- 快樂編程:青少年思維訓練
- Learning iOS Penetration Testing