generated from CodeYourFuture/Module-Template
-
-
Notifications
You must be signed in to change notification settings - Fork 30
Open
Labels
♟️ Dependent ticketThis ticket depends on something else being completed first this sprintThis ticket depends on something else being completed first this sprint🏕 Priority MandatoryThis work is expectedThis work is expected🐇 Size SmallAround an hourAround an hour📅 Week 2Assigned during Week 2 of this moduleAssigned during Week 2 of this module🧩 Feature
Description
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
Labels
♟️ Dependent ticketThis ticket depends on something else being completed first this sprintThis ticket depends on something else being completed first this sprint🏕 Priority MandatoryThis work is expectedThis work is expected🐇 Size SmallAround an hourAround an hour📅 Week 2Assigned during Week 2 of this moduleAssigned during Week 2 of this module🧩 Feature
Type
Projects
Status
📋 Backlog