Open Deraen opened 3 years ago
Alternatives (not necessarily better than what's already mentioned):
(defmacro f [& args] `[~@args])
(r/f component 1 2 3)
This solution doesn't need any changes to other code in Reagent, but allows static analysis to detect reagent calls accurately.
[foo 1 2 3]
as a function call in .cljs files. False positives should be handled by users.
https://github.com/borkdude/clj-kondo/issues/25
:n>
:$
. Would work the same way as[comp]
, but the keyword would make it possible to find the calls.