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

184
Vistas
Reset form field (Unform) after submit

I'm using react with javascript along with a library called Unform (( https://github.com/Rocketseat/unform )

I have a form with a single field and I wanted to clear this field after clicking "send".

<Form onSubmit={handleSubmit} >
      <Input
        id="input"
        name="value"
        placeholder="Where are we going?"
      /><br />
      <button
        type="submit"
        class="btn-send-direction"
      >Send Direction</button>
    </Form>

I'm not getting anything that works, can someone who has already done it help me? Thanks!

about 4 years ago · Juan Pablo Isaza
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