how do I write this in CLJS/shadow-cljs?
(parent.replaceChildren.apply parent new-children)
In squint this works, but CLJS makes something like:
parent.replaceChildren.apply.call(null,parent,new_children)
from this, which isn't valid since I need to call .apply on parentdunno, I only tried lite mode once with shadow
I guess the most correct would be (.apply (.-replaceChildren parent) parent new-children)
iirc chained dot syntax is supported by accident, but I kind of like it
yeah I know :)
I guess the ship has sailed on that, I'm heavily using it ;)
To hijack this thread slightly, I made a library in squint but it also runs with CLJS and it would be interesting to find out how large the quickstart example would be in lite mode. Do you happen to have an example of how to build a browser JS with CLJS lite mode?