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

439
Views
SyntaxError no capturado: expresión esperada, se obtuvo '< con reacción

Solo estoy hospedando hola mundo con reaccionar y recibo el mensaje:

 Uncaught SyntaxError: expected expression, got '< with react

mi código se ve así:

 <html> <head> </head> <body> <div id="root"> <!-- This element's contents will be replaced with your component. --> </div> <script src="https://unpkg.com/react@18/umd/react.development.js" crossorigin></script> <script src="https://unpkg.com/react-dom@18/umd/react-dom.development.js" crossorigin></script> <script> console.log("test") ReactDOM .createRoot(document.getElementById('root')) .render(<h1>Hello, world!</h1>); </script> </body> </html>
about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

<h1>Hello, world!</h1> es jsx. Necesitas babel para convertirlo a javascript.

about 4 years ago · Juan Pablo Isaza Report

0

Entonces, agregué:

 <script src="https://unpkg.com/@babel/standalone/babel.min.js"></script> <script type="text/babel">...

para que funcione. Necesitaba entender que podía usar reaccionar sin jsx o viceversa.

También encontré este video, que explica muy bien los conceptos de reaccionar en mi humilde opinión: https://www.youtube.com/watch?v=SAIdyBFHfVU

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!