Rocket Logo Rocket Guides Docs Blog Toggle darkmode

First Pages: Use JavaScript

You can use js script to execute JavaScript (type="module").

```js script

This can be useful for importing web components and using them in Markdown.

```js script
import 'magic-reveal/magic-reveal.js';


This text will get magically revealed. I can **still** use Markdown as long as there is an empty line between the opening/closing tags and my text.


or you can use js story, js preview-story, ...