'How to import and using normal js files (not in modules) in a React project? [duplicate]

I start a new project in React 17, and using create-react-app.

Now i have to import some js and css files into the project ,but the js file is write like this :

(function(b){

  var JGOcx = { ... },
      JGTimeOut = { ... },
   
    ....

}(window);

I don't think this file i can easily using in a React project,I just want to use a "JGOcx" object , what should I do ?

wait for answers ...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source