- 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:

- Embedded Linux Projects Using Yocto Project Cookbook
- Spring Cloud Alibaba核心技術與實戰案例
- Windows系統管理與服務配置
- 無代碼編程:用云表搭建企業數字化管理平臺
- Python神經網絡項目實戰
- Windows內核編程
- Python機器學習算法: 原理、實現與案例
- Machine Learning for Developers
- Web程序設計:ASP.NET(第2版)
- 邊玩邊學Scratch3.0少兒趣味編程
- Elasticsearch搜索引擎構建入門與實戰
- Hands-On Artificial Intelligence with Unreal Engine
- SEO的藝術(原書第2版)
- 從零開始:Qt可視化程序設計基礎教程
- 機器學習開發者指南