Fork me on GitHub
#reagent
<
2016-03-12
>
smw01:03:47

Is there a way to render a react component as ‘nested hiccup’?

smw01:03:29

ie: like reagent.core/render-to-string but instead of generating html, show me the hiccup of my nested components?

pez10:03:13

@smw: the “rendered” hiccup? a brute way to do it would be to feed the result from render-to-string into hickory or similar...

escherize11:03:26

@smw, can you give me an example of what you mean?

cky16:03:11

@escherize: I presume he means he wants a way to convert [my-component] into (say) [:div {:class “my-component"} [:span “Hello”] [:span “world”]] (or whatever the component actually generates).