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

418
Views
JSX: 'evento' está en desuso
onSelectedShowdateChangeHandler() { this.setState( { selectedShowdate: event.target.value }, this.getShowtimeList ); }

Hola chicos, tengo un error de "event" is deprecated aquí, no estoy muy seguro de con qué debo reemplazarlo. Muchas gracias

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

0

Las devoluciones de llamada del controlador de eventos recibirán un objeto de event como argumento cuando se invoquen. Simplemente agregue ese argumento a su función:

 onSelectedShowdateChangeHandler(event) { // Function body }

Depende de usted, pero algunos prefieren simplemente nombrarlo e o similar para evitar conflictos con el objeto de event "global".

about 4 years ago · Juan Pablo Isaza Report

0

Algo como esto debería funcionar:

 onSelectedShowdateChangeHandler(myEvent) { this.setState( { selectedShowdate: myEvent.target.value }, this.getShowtimeList ); }

Me sorprende que todavía lo estés usando, a menos que estés usando un código heredado. El event quedó en desuso hace años.

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!