Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

176
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda