Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

241
Visualizações
<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 Respostas
Responde à pergunta

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 Relatório

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda