Skip to content

Feature Add more pizzas #10

Open
Open
@SallyMcGrath

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions