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

- C#高級編程(第10版) C# 6 & .NET Core 1.0 (.NET開發(fā)經(jīng)典名著)
- Fundamentals of Linux
- 觸·心:DT時(shí)代的大數(shù)據(jù)精準(zhǔn)營銷
- SEO智慧
- Quarkus實(shí)踐指南:構(gòu)建新一代的Kubernetes原生Java微服務(wù)
- Hands-On Microservices with Kotlin
- Apache Mahout Clustering Designs
- Python深度學(xué)習(xí):基于TensorFlow
- 精通MATLAB(第3版)
- Learning Laravel's Eloquent
- Unity 2D Game Development Cookbook
- C語言程序設(shè)計(jì)
- 快速入門與進(jìn)階:Creo 4·0全實(shí)例精講
- Visual Studio Code 權(quán)威指南
- Python網(wǎng)絡(luò)爬蟲技術(shù)與應(yīng)用