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 = window.promisepay;
Thanks to this link for the info: https://stackoverflow.com/a/44877953/522859
Leave a Reply