Skip to content

Feature RestaurantButton #43

Description

@RbAvci

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions