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

183
Views
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 answers
Answer question

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 Report
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!