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 還沒有評估資料。