SolidJSS
SolidJS4y ago
44 replies
SilentRhetoric

Import JS library via script tag

A JS SDK library I need to use recommends importing a browser bundle by adding a script tag to index.html:

<script
src="https://unpkg.com/algosdk@v1.23.2/dist/browser/algosdk.min.js"
  integrity="sha384-1gIB0FiLMNmJ7adAfBOdH20Mnw0DZarB9D3PTozUAhKn/uT9CpHdaSbBIpmZTgrU"
  crossorigin="anonymous"
></script>


Can I add this to a route index.tsx for the page where I will use this SDK? And then, how do I import it and use functions from the SDK?
Was this page helpful?