Fork me on GitHub
#reagent
<
2016-07-06
>
johanatan01:07:30

@danielcompton: if all three forms produce "just react components" why would it matter which form was used to create?

danielcompton01:07:58

Was just thinking you might want more control which the form 3 gives you

danielcompton01:07:08

But it doesn’t matter if the others work for you

pesterhazy07:07:12

@johanatan: it should work fine. You can use (reagent.core/as-element [your-component]) and pass that to other javascript

blance17:07:19

Is there a standard way of doing css in clojurescript/reagent? Do I write css/less/sass and include them in html or define styles in cljs file and include them in each component inline?

jjfine17:07:08

i'm defining classes in a css file and applying those classes to components

jjfine17:07:30

works pretty well especially with switching classes based on state

jjfine17:07:38

and yeah I just include them in my html. haven't gotten around to getting them to autoreload with figwheel.

blance18:07:22

cool thanks. I guess I'll just do that

jjfine19:07:33

not sure about the svg tag, but for the image tag, changing :xlink:href to :xlink-href seems to work:

kishanov19:07:40

thnx @jjfine, it worked!