Embed cherry in a live playground on your website:
<div id="container"></div>
<script type="module">
import { createPlayground } from "";
const options = {
params: {
cljs: '(ns demo\n ;; you can use npm modules\n (:require ["canvas-confetti$default" :as confetti]))\n\n(let [el (js/document.getElementById "test")]\n (.addEventListener el "click"\n (fn []\n (confetti)\n (println "test"))))\n',
html: '<button id="test">test</button>',
console: "open",
},
};
createPlayground("#container", options);
</script>
https://github.com/squint-cljs/cherry/issues/101#issuecomment-1666809920