CodeYourFuture / CodeYourFuture/React-Module-Project
Feature Add more pizzas
Offen
♟️ Dependent ticket
🏕 Priority Mandatory
🐇 Size Small
📅 Week 2
🧩 Feature
- Vorherrschende Sprache
- JavaScript
- Sterne
- 1
- Forks
- 28
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
## 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
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Bewertung
Dieses Issue wurde noch nicht bewertet.