Skip to content

Feature Order #12

@SallyMcGrath

Description

@SallyMcGrath

Instructions:

Extract the <li> containing "Pizzas" from the <Restaurant /> component to a new component named Order. Also, 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 #11

Test:

  • 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

    Labels

    ♟️ Dependent ticketThis ticket depends on something else being completed first this sprint🐇 Size SmallAround an hour📅 Week 2Assigned during Week 2 of this module🧩 Feature

    Type

    No type

    Projects

    Status

    📋 Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions