CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Add more pizzas

Đang mở
#10 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 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ả

## Dependent ticket: complete and merge #9 before starting this ticket

**Instructions:**

In the `` component, create a new function named `orderOne`. The `orderOne` function doesn't take any parameters and should use the `setOrders` function to increment the `orders` state variable by 1. Then, add a `onClick` handler to the Add `` that calls the `orderOne` function when it's being clicked.

**Test:**

When the Add button is clicked, the number of pizzas increases by 1

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.