@borkdude I noticed this example you linked to in a thread on async in #clojurescript appears to be throwing an error: https://squint-cljs.github.io/squint/?repl=true&src=KGRlZm4gZXhlYyBbeF0KICAoanMvUHJvbWlzZS5yZXNvbHZlIHgpKQoKKGRlZm4gXjpnZW4gZ2VuIFtdCiAgKGpzLXlpZWxkIChleGVjIDEpKQogIChqcy15aWVsZCAoZXhlYyAyKSkKICBuaWwpCgooZGVmIG15LWF0b20gKGF0b20gW10pKQoKKGRlZm4gXjphc3luYyBmb28gW10KICAoZG9zZXEgW2kgKGdlbildCiAgICAoc3dhcCEgbXktYXRvbSBjb25qIChqcy1hd2FpdCBpKSkpKQoKKGpzLWF3YWl0IChmb28pKQoKQG15LWF0b20%3D
Sorry about that, fixed
All good I just noticed it passing by and thought you might want to know.
anyone tried that withsquint? https://cycle.js.org i guess i'm gonna give it a try 😄
It seems this is the smallest repro: https://squint-cljs.github.io/squint/?repl=true&src=KHJlcXVpcmUgJ1siaHR0cHM6Ly9lc20uc2gveHN0cmVhbUAxMS4xNC4wIiA6YXMgeHNdKQ%3D%3D so just loading the library produces that error
it seems to rely on this other lib: https://github.com/staltz/xstream/blob/fee5f0d1ea23becc5aa89064624b609a105104b3/src/index.ts#L2
is there a way to use https://cycle.js.org/getting-started.html#getting-started-coding-consider-jsx with squint? snabbdom-pragma
doesn't look that bad i guess
(ns App
(:require
["xstream$default" :as xs]
["@cycle/run" :refer [run]]
["@cycle/dom" :refer [makeDOMDriver h1]]))
(defn main []
{:DOM (-> xs
(.periodic 1000)
(.map #(h1 (str % " hello seconds elapsed"))))})
(run main {:DOM (makeDOMDriver "#mount")})I don't see why that Snabbdom thing wouldn't work since it doesn't require any special syntax, but you will need to build it using node
how does the #jsx pragma work 🙂 can i configure it somehow i don't get it 😄
what pragma? you can just write #jsx [:a ...] right?
squint just outputs jsx, the tooling does the rest
yeah i guess i'm to dumb for the tooling 😄 currently wanted to set it up on my own 😄 but you know to much fiddeling and the cycle/dom functions are okay i'm a simple man 😄