CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Add more pizzas

未關閉
#10 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
♟️ 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 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。