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
Extract the <button> currently in the <Restaurant /> component to a new component named RestaurantButton. Pass the orderOne function as a prop to the <RestaurantButton /> component and use this prop in the onClick handler.
Test:
Clicking the button should increment the number of pizzas.
The text was updated successfully, but these errors were encountered:
From React-Module-Project created by SallyMcGrath: CodeYourFuture#11
Instructions:
Extract the
<button>
currently in the<Restaurant />
component to a new component namedRestaurantButton
. Pass theorderOne
function as a prop to the<RestaurantButton />
component and use this prop in theonClick
handler.Test:
The text was updated successfully, but these errors were encountered: