Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

234
Vistas
<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 Respuestas
Responde la pregunta

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 Denunciar

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 Denunciar

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda