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

485
Views
Etiqueta de cierre JSX correspondiente esperada para la entrada Reactjs

Al crear un componente en Reactjs con campos de entrada, se produce un error Error: Parse Error: Line 47: Expected corresponding JSX closing tag for input at http://localhost/chat-react/src/script.js:47:20 </div>

 var Main = React.createClass({ render: function() { return ( <div className="card-action"> <i class="mdi-action-account-circle prefix"></i> <input id="icon_prefix" type="text" class="validate"> </div> ); } });
over 4 years ago · Santiago Trujillo
3 answers
Answer question

0

Debe cerrar el elemento de entrada con /> al final.

 <input id="icon_prefix" type="text" class="validate" />
over 4 years ago · Santiago Trujillo Report

0

Ocurre cuando no cerramos una etiqueta html.

Asegúrese de que todas las etiquetas html estén cerradas.

En mi caso fue la etiqueta <br> . Debería ser <br /> .

Intente eliminar temporalmente un fragmento de código hasta que encuentre el cierre de la etiqueta html que falta.

over 4 years ago · Santiago Trujillo Report

0

Este error también ocurre si tiene un orden incorrecto de sus componentes.

Ejemplo: esto está mal:

 <ComponentA> <ComponentB> </ComponentA> </ComponentB>

manera correcta:

 <ComponentA> <ComponentB> </ComponentB> </ComponentA>
over 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!