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

79
Vistas
Second .html file not recognised by javascript ft.ReactDOM

I'm still a learner and currently tweaking around with reactDom.render

I have two html files both linked to one .js file and I use getElementById to render react

Anyway my problem is that in my live server, the reactDom renders the divs in my index.html file, but ignores the other html file

I've used script linking to the .js file in both html files correctly

I cant imagine to try anything else, like it should work fine? Update - It is working when I use two seperate .js files one for each .html, but I want to manage both html files from one .js file

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

So when working with react, react sees each HTML file as an app and not just as a file so this is the reason why the functionality of one app cannot be used for another. I suggest you just use two separate .js files for your app-building.

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