Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

178
Vistas
is there a way to to do the following

enter image description here is there a way I can empty the input field and still return to default "technology" results on the pageenter image description here

By default data showing are correct, it fetches data as I type(due to dependency) is also working fine but as soon as i empty input..enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

You can prevent the error by adding a check before the article.map block is rendered:

<div className="wrapper">
    { article ? (article.map(...)) : 'No article found...'}
</div>

If you need to reset the input state to Technology you can define a custom function, and call it when needed:

const resetInput = () => {
    setInput('Technology')
}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda