Feature Restaurant State
まだ誰も着手していません。
評価
- 難易度
- 2/5
- 見積もり時間
- 1〜3時間
- 初心者へのやさしさ
- 55/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react
- 領域
- frontend
調査の方向性
Restaurantコンポーネントから始めて、現在のpizzasの値とAddボタンがどのように使われているかを確認します。ReactのuseStateをインポートし、初期値を0にしてordersを作成し、pizzas変数を削除します。注文したピザの数が引き続き画面に0と表示されることを確認します。
索引モデルが issue の本文から書いたものです。
説明
Instructions:
Working in Restaurant component
At the moment, the number of pizzas a guest can order is static and set to 0, even if they click on the 'Add' button. We will change that in the following to let a guest add more pizzas to their order. First, declare a new state variable orders along with the function to set the orders state setOrders. The initial value of the orders state should be 0. Use the new orders variable instead of the pizzas variable (that you can now delete).
Hint: You need to use the React function useState to create a state variable. Remember to import the function at the top with import React, {useState} from "react";.
Test:
- The number of ordered pizzas is still 0 on the screen.
- 主要言語
- JavaScript
- スター
- 1
- フォーク
- 28
- PR マージ指標
- 30日以内にマージされた PR はありません
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
CodeYourFuture/React-Module-Project のほかの issue
-
♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
Feature Search State オープン🐂 Size Medium 📅 Week 3 🧩 Feature
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
Feature Active Row オープン🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
-
🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
難易度 1/5 1時間未満 初心者へのやさしさ 68/100
CodeYourFuture/React-Module-Project の issue をすべて見る
似ている issue
-
bug
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
apache/cloudstack#14222 ·
-
Browser Waiting for: Product Owner
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
getsentry/sentry-javascript#24577 · コメント 1 件 ·
-
curation good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
amponce/archive-movie-browser#186 ·
-
light
難易度 2/5 1〜3時間 初心者へのやさしさ 85/100
aemdemos/patients-stryker#253 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 86/100
clerk/javascript#9852 ·