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

232
Views
Displaying raw jsx code on my webpage. How to resolve?

I am working on a client page in reactjs with socket.io and express. i have a basic file called login.jsx and trying to display the web code that is at the end of the file in a return block. but it is displaying the raw code.

Screenshot of issue.

I am using the sendFile function under express for this as shown here.

app.get('/', (req, res) => {
    res.sendFile('Login.jsx', { root: "../frontend/src/pages" });
});

Thanks

about 4 years ago · Juan Pablo Isaza
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!