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

195
Views
Cómo devolver una cadena html con la función del componente de reacción

Tengo un componente de clase de reacción con estas funciones. Dentro del componenteDidUpdate, llamaría a generarHtml para obtener el html, y en el html, llamará a vincular una función llamada radioHandler. Sin embargo, mostró un error que no pudo encontrar la función radioHandler cuando hago clic en el botón de opción.

 componentDidUpdate(){ document.getElementById('spouseInfo').innerHTML = this.generateHtml() } generateHtml = () =>{ return `<input name="${ele.$id.split("/")[3]}" onClick="${this.radioHandler}" type="radio" value="false"checked>` } radioHandler = (event) => { // do something when click radio button };
about 4 years ago · Santiago Trujillo
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!