Three lessons for JS interop in ClojureScript
gapi); (2) If one
. doesn’t work, use two
.. 🙂 (If I’d examine the macro-expansion I’d understand why…); (3) Modeling JS’s
obj.prop1.prop2.methodCall().prop3 syntax (i.e. calling all props, method calls, and subsequent props at once) seems out of reach atm– use nested forms:
(-prop3 (.methodCall (. obj -prop1 -prop2))).