Fork me on GitHub
#reagent
<
2019-01-18
>
piotr-yuxuan17:01:24

Using reagent et shadow-cljs, there is a behaviour I don’t understand. Is it a bug, or is it OK to use reagent/as-element for map results? This looks overly heavy for me.

WhoNeedszZz21:01:29

reagent/as-element is intended for when you need to pass a component as hiccup formatted data as a child component. Please see the docs: https://github.com/reagent-project/reagent/blob/master/doc/InteropWithReact.md

lilactown18:01:29

@piotr2b I don't think you should need to use as-element here

lilactown18:01:48

hm I might be wrong

lilactown18:01:28

how are you calling component?

piotr-yuxuan01:01:47

Thanks you for your replies 🙂 I’m calling it [component] in another form-1 reagent component