From React-Module-Project created by SallyMcGrath: CodeYourFuture/React-Module-Project#11
Instructions:
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.
From React-Module-Project created by SallyMcGrath: CodeYourFuture/React-Module-Project#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: