Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

355
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda