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

356
Vistas
ReactJs how can I fix missing semicolon error at "render()"

I don't know where I missed the semi-colon. bellow is the error code.

Syntax error: Missing semicolon. (106:11)

  104 |   }
  105 |
  106 |   render() {
      |           ^
  107 |     return (
  108 |       <div className="App">
  109 |         <ParticlesBg type="circle" bg={true} />
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Could you post the code in line 106.

One of the following could be the reason for your error,

  1. Unescaped strings : This error can occur easily when not escaping strings properly and the JavaScript engine is expecting the end of your string already. E.g:

    var foo = 'Tom's bar'; // SyntaxError: missing ; before statement

Could be corrected as,

var foo = "Tom's bar";
  1. Declaring properties with var : You cannot declare properties of an object or array with a var declaration.

    var obj = {}; var obj.foo = 'hi'; // SyntaxError missing ; before statement

    var array = []; var array[0] = 'there'; // SyntaxError missing ; before statement

Could be corrected as,

var obj = {};
obj.foo = 'hi';

var array = [];
array[0] = 'there';

You can check out more about it from here : here

about 4 years ago · Juan Pablo Isaza 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