Skip to content

[TECH ED] Feature Order #59

@zelihapala

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions