Just wondering what the procedure is loading an external script into a component which renders HTML?
I call a script, which returns me an unordered list which i want to use for an image carousel it looks something like this but currently isn't working
this is what i have inside my render
return(
<Slick {...settings}>
  <script
    type="text/javascript"
    src="https://some.external.script.js"
  />
  <div
    class="render-html-here-from-script"        
  />
  <script>
    SomeScript.require(['xxx'], function(arg)
    {arg.loadAll().done(function(embed) {
      // code here gets list and binds above in div
    })}
    )
  </script>
</Slick>
)
the above code works fine if I just copy/paste straight into a standard HTML page
Thanks
