CodeYourFuture / CodeYourFuture/React-Module-Project
Feature Add more pizzas
未关闭
♟️ Dependent ticket
🏕 Priority Mandatory
🐇 Size Small
📅 Week 2
🧩 Feature
- 主要语言
- JavaScript
- 星标
- 1
- 派生
- 28
- PR 合并指标
- 30 天内没有已合并 PR
描述
## 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
贡献指南
这个仓库没有索引到贡献指南
评估
这个 Issue 还没有评估数据。