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

250
Vistas
how can define double type to onChange Event param

im using React onChange in input tag. and i faced problem about type definication.

look this code

  onChange?: (e: ChangeEvent<HTMLInputElement> | SeperationChangeEvent) => void;

and im using like this

const Foo = () => {
 const handleChange = (e : ChangeEvent<HTMLInputElement>) => {}
 return <Input onChange={handleChange}/>
}

below error pic how can i solve this problem?

enter image description here

almost 4 years ago · Santiago Trujillo
1 Respuestas
Responde la pregunta

0

React exports its own ChangeEvent that is different than the built in one.

const Foo = () => {
  const handleChange = (e : React.ChangeEvent<HTMLInputElement>) => {}

  return <Input onChange={handleChange}/>
}

almost 4 years ago · Santiago Trujillo Denunciar
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