Added a reagent https://codemirror.net/scittlet to the https://github.com/ikappaki/scittletsCatalog with version v0.2.0. This scittlet includes utilities for dynamically importing its dependencies from https://esm.sh/. In the next iteration, these utilities will be moved to a separate scittlet for reuse across multiple scittlets or standalone use. CodeMirror scittlet Demo 👾: https://ikappaki.github.io/scittlets/examples/codemirror/codemirror_demo.html CodeMirror Catalog API Entry: https://ikappaki.github.io/scittlets/test/scittlets/reagent/codemirror.html Web Catalog: https://ikappaki.github.io/scittlets/ Tiny Scittlets Slides (slide 2): https://ikappaki.github.io/scittlets-slides/
@arohner regarding our recent ESM discussion, @chaos solved it in combination with reagent in this way: https://github.com/ikappaki/scittlets/blob/6a81d521fc70d4a4edfd7c6b25795ed9e40e7c7c/src/scittlets/reagent/codemirror.cljs#L7-L35
The difficulty is that loading ESM is async so you need to write async code to deal with that
scittle contains promesa though, to make this easier