Skip to content

[TECH ED] Feature Order #59

Description

@zelihapala

Tasks

  • Extract the <li> containing "Pizzas" from the <Restaurant /> component to a new component named Order.
  • Move the declaration of the orders state and the orderOne function from the <Restaurant /> component to the new <Order /> component.
  • Use the <Order /> component in the <ul> list of the <Restaurant /> component.

Dependent on #10

Tests:

  • The pizza order is still rendered on the page
  • Clicking on the "Add" button still increments the number of orders.

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions