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

156
Views
adding javascript file to react

I want to use javascript files in react js, I saw many answers where they told to add script src in index.html in this way :

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
    <meta name="theme-color" content="#000000">
    
    <link rel="manifest" href="%PUBLIC_URL%/manifest.json">
    <link rel="shortcut icon" href="%PUBLIC_URL%/favicon.ico">
    
  <title>React App</title>
  <script src="../src/app.js"></script>
  <script src="../src/helper.js"></script>
  <script src="../src/sort-algorthms.js"></script>
</head>

<body>
    
    <div id="root"></div>
    
</body>

</html>

but this is not working, please anyone help . even tried this - https://betterprogramming.pub/4-ways-of-adding-external-js-files-in-reactjs-823f85de3668

here is link to sandbox : https://codesandbox.io/s/trail-minipro-rxjz9?file=/public/index.html

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!