Tag: create-react-app
-
Including an Externally Hosted Script in ReactJs
Hi everyone, Just a quick example of how to include an externally hosted js file in a reactjs app. In index.html add your script tag as you would in a normal app: https://js.prelive.promisepay.com/PromisePay.js Then in the file you plan to use the library you can add a const and reference it normally: const promisepay =…