reagent-project / reagent

A minimalistic ClojureScript interface to React.js
http://reagent-project.github.io/
MIT License
4.74k stars 412 forks source link

Find a way to make Hiccup forms easier to analyze #522

Open Deraen opened 3 years ago

Deraen commented 3 years ago

https://github.com/borkdude/clj-kondo/issues/25

borkdude commented 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.