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

170
Views
I'm trying to insert a text but the input field on my local terminal won't let me

As you can see the code from my Visual Studio Code, it won't let me type within the text input if I render the code

enter image description here

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

The onChange event on line 36 invokes (updateInput) function. Which doesn't exist or declared inside the component, if you sent it as a prop use :

this.props.updateInput(_params_)

Otherwise declare the function inside the component in order to make the event work properly.

enter image description here

about 4 years ago · Juan Pablo Isaza Report

0

That's because <input /> has constant value, so you need to change value to defaultValue.

<input 
  type="text"
  placeholder="Insert text"
  defaultValue={this.state.newItem}
  onChange={() => {}}
/>

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!