reagent

A minimalistic ClojureScript interface to React.js http://reagent-project.github.io/
Fredrik Andersson 2021-02-03T07:53:55.037500Z

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

juhoteperi 2021-02-03T08:56:23.037800Z

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.

Fredrik Andersson 2021-02-03T10:45:31.038Z

I see, thanks!

p-himik 2021-02-03T07:55:04.037600Z

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.

juhoteperi 2021-02-03T08:56:23.037800Z

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.

Fredrik Andersson 2021-02-03T10:45:31.038Z

I see, thanks!