CodeYourFuture / CodeYourFuture/React-Module-Project

Feature Add more pizzas

Abierto
#10 0 comentarios 0 reacciones 0 asignados Ver en GitHub
♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Lenguaje dominante
JavaScript
Estrellas
1
Forks
28
Métricas de merge de PR
Sin PR fusionados en 30 d

Descripción

## 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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Evaluación

Este issue todavía no se ha evaluado.

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.