Feature Search State
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 65/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Ferma
- Stack tecnologico
- javascript, react
- Ambito
- frontend
Direzione di ricerca
Apri src/Search.js e analizza il campo di input del nome del cliente e il componente circostante. Aggiungi lo stato searchInput richiesto e il gestore dell’input, quindi verifica che la digitazione aggiorni il campo e registri il valore inserito con console.log().
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Storing the search input in a state
Instructions:
Implement the functionality to search for a customer name given the text typed into the customer name field.
In the src/Search.js file, declare a new state variable named searchInput with the corresponding setter function setSearchInput (hint: use the React function useState). The initial value of the searchInput variable can be an empty string. Add a value property to the <input> tag that is set to the new searchInput state variable.
Create a new function handleSearchInput taking an event parameter. This function should use the setSearchInput function to update the state variable searchInput with what the user typed in the input field. Finally, add a onChange prop to the <input> tag that is set to the function handleSearchInput. Use console.log() to output the value received in the handleSearchInput function.
Hint: Use event.target.value to get the input value.
Test:
- Given a searchInput
- When I type in the field
- Then the value is logged
- Lingua principale
- JavaScript
- Stelle
- 1
- Fork
- 28
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di CodeYourFuture/React-Module-Project
-
Feature Error Message Aperta♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Feature Loading Message Aperta🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Feature Active Row Aperta🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
-
Feature Bookings state Aperta🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 68/100
-
Feature RestaurantButton Aperta♟️ Dependent ticket 🏕 Priority Mandatory 🦔 Size Tiny
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
Tutte le issue di CodeYourFuture/React-Module-Project
Issue simili
-
bug customer-eng Durable Agents Inngest status: needs triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
-
optimization optimization:agents-md-curator
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
githubnext/gh-aw-cao#13475 ·
-
[BUG]: "Clear All" in Settings doesn't clear the saved analysis, old data comes back after reload Apertabug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
AOSSIE-Org/OrgExplorer#253 · 1 commento ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
oxc-project/oxc#26944 ·
-
ai-observability bug team/ai-observability
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100