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

165
Views
';' esperado.ts(1005). Recibo un error y no puedo ejecutarlo.

Aquí hay una captura de pantalla del error.

No se utiliza mecanografiado. ¿Por qué recibo este error? No ocurre en ningún otro componente. He mirado las respuestas de otros interrogadores pero no he encontrado ninguna información útil. ¿Puede alguien por favor ayudarme?

Los errores correspondientes ocurren en la ubicación de la función constructora, la ubicación de la función shouldComponentUpdate y la ubicación de la función de representación.

 const RowTextarea = () => { constructor(props){ super(props); this.textArea = null; } shouldComponentUpdate(nextProps){ if(this.props.input.value !== nextProps.input.value){ if(isEmpty(nextProps.input.value)){ this.textArea.setAttribute('rows', this.props.rows); }else{ this.textArea.setAttribute('rows', this.props.rows); while(this.textArea.scrollHeight > this.textArea.offsetHeight){ const tempRows = Number(this.textArea.getAttribute('rows')); this.textArea.setAttribute('rows', tempRows + 1); } } } } return true; };
about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Gracias a todos por compartir.

Cambiar de un componente de función a un componente de clase funcionó. Fue realmente útil. Muchísimas gracias.

about 4 years ago · Santiago Trujillo 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!