Fork me on GitHub
#reagent
<
2021-02-03
>
Fredrik Andersson07:02:55

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

p-himik07:02:04

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.

juhoteperi08:02:23

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.