CodeYourFuture / CodeYourFuture/React-Module-Project

Feature CustomerProfile

Đang mở
#20 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 🧩 Feature
Ngôn ngữ chính
JavaScript
Star
1
Fork
28
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

#### 20. Display a customer profile - iteration 1

**Instructions:**

Ccreate a new `` component. This component should be rendered next to the table in the `` component. This component should receive one prop `id`.

Add a new column in the table of the `` component and display a `` for each row.
The text of the button should read "Show profile"

When clicking on a "Show profile" button for a given row, the component `` should display the text "Customer Profile", where is the id of the selected customer. Initially, the `` component doesn't show anything.

**Hint:** You need to record the selected customer id after clicking on a "Show profile" button. In which component do you think this state should be defined?

**Test:**

When first showing the page, no customer profile is displayed. When clicking the first "Show profile" button of the table, the text "Customer 1 profile" appears. When clicking the second "Show profile" button of the table, the text "Customer 2 profile" appears instead.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.