To import a JavaScript package from a CDN or script tag in React, we get the library from window.
For instance, we write
<script src="https://cdn.dwolla.com/1/dwolla.js"></script>
to add the dwolla library with a script element.
Then we get the dwolla library with
const dwolla = window.dwolla;