- Mastering React Test:Driven Development
- Daniel Irvine
- 157字
- 2021-06-24 14:45:04
Rendering lists and detail views
So far, we’ve seen a great deal of test-driven development, but not much of React. In this section, we’ll take what we’ve learned about TDD and apply it to learning more React.
Our app at the moment just displays a single thing—a customer’s name. Now, we'll extend it so that we have a view of all appointments that are happening today.
Let's do a little more up-front design. We've got an Appointment component that takes an appointment and displays it. We can build an AppointmentsDayView component around it that takes an array of appointment objects and displays them as a list. It also displays a single Appointment component at any one time, whichever appointment is currently selected. The user can click on an Appointment and it will open up that appointment for viewing:

- 軟件項目管理(第2版)
- Flink SQL與DataStream入門、進階與實戰
- Blockly創意趣味編程
- Apache Mesos Essentials
- Learning Python by Building Games
- The HTML and CSS Workshop
- Learning Python Design Patterns
- 從零開始學Linux編程
- Cocos2d-x Game Development Blueprints
- Distributed Computing in Java 9
- Tableau Desktop可視化高級應用
- Getting Started with React VR
- Python硬件編程實戰
- Python預測分析與機器學習
- 現代C++語言核心特性解析