I have a .js file (JavaScript file) that no exports code. It have a constructor and some prototype methods. I need this to add in the ReactJS App.
What I tried is, adding a script tag in client/index.html. Then upload the js file to client folder. When I call the constructor in my Apps.jsx file, I received an error, Constructor_name not defined.
How can I do it in correct way?