[TECH ED] Feature Order

Open
#59 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Refactor
Clarity
Clearly specified
Activity status
Stale
Tech stack
javascript
Domain
frontend

Research direction

Start with the component and review dependency #10 before changing its pizza list. Extract the “Pizzas” item and order state into , then verify that the pizza still renders and clicking “Add” increments the order count.

Written by the indexing model from the issue text.

Description

🏕 Priority Mandatory 🐂 Size Medium
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.
Dominant language
JavaScript
Stars
1
Forks
28
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CodeYourFuture/React-Module-Project

All issues in CodeYourFuture/React-Module-Project

Similar issues

More JavaScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.