You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
From React-Module-Project created by SallyMcGrath: CodeYourFuture#10
Dependent ticket: complete and merge #9 before starting this ticket
Instructions:
In the
<Restaurant />
component, create a new function namedorderOne
. TheorderOne
function doesn't take any parameters and should use thesetOrders
function to increment theorders
state variable by 1. Then, add aonClick
handler to the Add<button>
that calls theorderOne
function when it's being clicked.Test:
When the Add button is clicked, the number of pizzas increases by 1
The text was updated successfully, but these errors were encountered: