DEV Community

Discussion on: myConsole - A JavaScript editor for your phone, in JavaScript.

Collapse
joelnet profile image
JavaScript Joel

Let me rephrase. How do I import libraries like import S from 'sanctuary'; to play with in sandbox?

Thread Thread
victorqribeiro profile image
Victor Ribeiro Author

You can add an external script, from a CDN or something.

let script = document.createElement('script');

script.src = 'site.com/script.js';

document.body.appendChild(script);

Thread Thread
joelnet profile image
JavaScript Joel

Awesome!