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

169
Views
Adding React JS to existing website with debugging capability

I am following the steps at https://reactjs.org/docs/add-react-to-a-website.html to add React to an existing website. The process involves adding the scripts:

<script src="https://unpkg.com/react@17/umd/react.production.min.js" crossorigin></script>
<script src="https://unpkg.com/react-dom@17/umd/react-dom.production.min.js" crossorigin></script>

Then, enabling JSX by installing Babel:

npm init -y
npm install babel-cli@6 babel-preset-react-app@3

Finally, running Babel:

npx babel --watch src --out-dir . --presets react-app/prod

These steps work great, but if there is a syntax error in any of the JSX files in src, then Babel will fail to transpile the JSX file, and the transpiled JS file will never be written, so I am unable to debug the issue. Additionally, if there is a runtime error in the transpiled JS file, Google Chrome Developer Console will show the errors from the resulting transpiled JS file, and not the original JSX file. What is the simplest way to get the JSX syntax/runtime errors showing up in Google Chrome Developer Console?

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