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

229
Views
<script> tag problem in html file in react js

Please cosnsider me as beginner. if you think this question is stupid, sorry for that

  1. I added html file in react js as "num.html"
  2. In that "num.html", it has tag.
  3. I want to use that html file in my react component. so, i rendered in my app component.
  4. it was showing error like :

ERROR in ./src/num.html 1:0

Module parse failed: Unexpected token (1:0) You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders

  1. I want to use script tag on that html file . but react js not allowing. is there any alternative?
about 4 years ago · Juan Pablo Isaza
3 answers
Answer question

0

At first you should have convert your html file to js file. Then you put react js common format. Now you will be able your html code in react component.

about 4 years ago · Juan Pablo Isaza Report

0

react has a file index.html origin, i think u can put your javascript in this file, bellow root element. But I think no one do that. :v

about 4 years ago · Juan Pablo Isaza Report

0

first you should replace .html to .js then type rsc and vs code give stracter then paste the HTML code in react file.

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!