Fork me on GitHub
#cljs-dev
<
2019-06-16
>
favila01:06:49

Only way is js/foo.bar

favila01:06:29

(At the call site)

mfikes03:06:07

@lilactown There might be a way to hack it using the stuff set up for declare:

(declare ^{:arglists '([x])} create-element)
(set! create-element react/createElement)
Then, when compiling with :static-fns true you would get code like
cljs.user.create_element("div")
It's unfortunate that you seemingly can't put this directly on a def, as in
(def ^{:arglists '([x])} create-element react/createElement)

lread19:06:15

have create JIRA issue to explore using jsvu https://clojure.atlassian.net/browse/CLJS-3108