Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

182
Views
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
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!