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

354
Views
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 answers
Answer question

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 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!