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

134
Views
I keep getting an unexpected token trying to create a static page in React.js

I have checked each tag in html but they don't have any missing tokens but I get an unexpected token '<' when trying to render my component in react

This is my React code

import React from "react"
import ReactDOM from "react-dom"
function Temp()
{
    return(
        //This is where I get the unexpected token error
        <h1>Test</h1>
    )
}
ReactDOM.render(<Temp/>,document.getElementById("root"));

This is my html

<!DOCTYPE html>
<html>
    <body>
        <div id="root"></div>
        <script
          type="text/babel" 
          src="node_modules">
        </script>
    </body>
</html>
about 4 years ago · Santiago Trujillo
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!