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

83
Views
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 answers
Answer question

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 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!