Fork me on GitHub
Fredrik Andersson07:02:55

Hi everyone! I wonder if reagent hiccup don't have the html macro to precompile the vectors?


Reagent hiccup is intended to create React elements, not HTML. If you don't really care about Reagent and care only about Hiccup, then there are such functions that you can use in compile time that will give you an HTML string.


Reagent doesn't use macros (for this), the hiccup to React elements conversion is done runtime. You can use additional libraries if you want to use macros, like Sablono.