Feature Search State
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 2/5
- Tiempo estimado
- 1-3 horas
- Aptitud para principiantes
- 65/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Estancado
- Stack tecnológico
- javascript, react
- Área
- frontend
Línea de trabajo
Abre src/Search.js e inspecciona el campo de entrada del nombre del cliente y el componente que lo rodea. Añade el estado searchInput solicitado y el manejador de entrada, y verifica después que escribir actualiza el campo y registra el valor introducido con console.log().
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- JavaScript
- Estrellas
- 1
- Forks
- 28
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de CodeYourFuture/React-Module-Project
-
Feature Error Message Abierto♟️ Dependent ticket 🏕 Priority Mandatory 🐇 Size Small 📅 Week 3 📅 Week 4
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Feature Loading Message Abierto🏕 Priority Mandatory 🐂 Size Medium 📅 Week 4 🧩 Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Feature Active Row Abierto🏝️ Priority Stretch 🐂 Size Medium 📅 Week 2 🧩 Feature
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Feature Bookings state Abierto🏕 Priority Mandatory 🐇 Size Small 📅 Week 2 🧩 Feature
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
-
Feature RestaurantButton Abierto♟️ Dependent ticket 🏕 Priority Mandatory 🦔 Size Tiny
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Todos los issues de CodeYourFuture/React-Module-Project
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 65/100
-
Theme loads third-party resources on every page (jsdelivr web font, cdnjs Font Awesome) – GDPR Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
docToolchain/docToolchain#1705 ·
-
Timezone select lists one option per character; duplicate "Failed" reason; shared tracker popover id Abiertobug
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
nightscout/nocturne#1414 ·
-
bug v2
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
modelcontextprotocol/inspector#2458 · 1 comentario ·
-
Mend: dependency security vulnerability status: needs triage 🕵️♀️
Dificultad 2/5 1-3 horas Aptitud para principiantes 70/100
carbon-design-system/ibm-products#9907 ·