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

174
Views
TypeError: Cannot read properties of undefined (reading '(Function Name)') but works for all

It works for all but this didn't, I had all for this following code:

constructor(props) {
 super(props);
  this.state = {
   addchange: ''
  }
 this.handleInputAddChange = this.handleInputAddChange.bind(this);
}
handleInputAddChange = (e) => {
 e.preventDefault();
  this.setState({
   [e.target.name]: e.target.value
  })
}
<input type="text" name="addchange" onChange={this.handleInputAddChange} />

and pops ups the weird error, and for the last time I doubled check that most of my code like this works but this appeared React.js's error screen like this:

TypeError: Cannot read properties of undefined (reading 'handleInputAddChange')

Note that its the same format from my other code like this. and its weird why it didn't work in this one anymore.

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!