Skip to content

Feature Add more pizzas #10

Open
Open

Description

@SallyMcGrath

Dependent ticket: complete and merge #9 before starting this ticket

Instructions:

In the <Restaurant /> 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 <button> that calls the orderOne function when it's being clicked.

Test:

When the Add button is clicked, the number of pizzas increases by 1

Activity

  1. moved this from 📋 Backlog to 🔖 Ready in React Module Projecton Mar 2, 2024
  2. moved this from 🔖 Ready to 📋 Backlog in React Module Projecton Mar 2, 2024
  3. changed the title [-]Feature: Add more pizzas[/-] [+]Feature Add more pizzas[/+] on Dec 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions