Dead simple RunKit web component
With unpkg, add this to page:
<script src="//unpkg.com/@tpluscode/wc-runkit"></script>
Add a <run-kit>
element with a <pre>
inside
<run-kit>
<pre>
const hello = require("simple-hello-world-example")
myApp.printMsg()
</pre>
</run-kit>
When using in a static-page generator, you might use triple backticks instead of <pre>
to have the highlighted
code be displayed until runkit initializes its embed.
<run-kit>
```js
const hello = require("simple-hello-world-example")
myApp.printMsg()
```
</run-kit>
All options follow Embed API docs page
<run-kit node-version="13"></run-kit>
The default is 12