Static Import Snippet

Our `basicjs.html` uses `eval()` to run javascript snippets and therefore cannot use static import declarations. We offer `importjs.html` which uses a clever mix of `import()` and a data url instead of `eval()`, thereby permitting static imports.

Here we offer to sprinkle confetti in the frame.

Provide a string with "export default" to tell the snippet runner how to display simple results.

import canvasConfetti from "" canvasConfetti() export default "<h2>Ta-da!</h2>"

Our first frame uses basicjs.html . No confetti.

// HEIGHT 75

Our second frame uses importjs.html .

// HEIGHT 75