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

175
Views
TypeError: no se pueden leer las propiedades de undefined (leyendo '(Nombre de la función)') pero funciona para todos

Funciona para todos, pero esto no funcionó, tenía todo para este siguiente código:

 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} />

y aparece el error extraño, y por última vez verifiqué dos veces que la mayoría de mi código como este funciona, pero apareció la pantalla de error de React.js así:

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

Tenga en cuenta que es el mismo formato de mi otro código como este. y es extraño por qué ya no funcionó en este.

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!