Fork me on GitHub
#reagent
<
2018-11-12
>
farzana20:11:29

hello, what is best way of css-in reagent

lilactown20:11:55

I enjoy CSS-in-JS solutions like emotion. you can also use plain CSS and add the classes in your code

farzana21:11:10

how i integrate emotion to reagent

farzana21:11:34

it's seem like JavaScript library

farzana21:11:51

is there any wraper around it in reagent

lilactown21:11:35

I don't think there's any reagent or CLJS wrapper for it I've seen, but something like: https://gist.github.com/Lokeh/5ecb2f77c4a488bc37cf347fe6edfe56

manutter5121:11:19

Looks like a typo on the last line: (map clj-j>js styles)

lilactown21:11:48

thx! updated

lilactown21:11:37

can get you pretty far

polymeris21:11:11

https://github.com/Jarzka/stylefy is a different approach which I find interesting (haven't used it seriously yet, though)

😲 4
farzana21:11:31

stylefy seems great

phil22:11:17

Can someone remind me of the syntax to let me output two things as neighbours without an extra div?

shaun-mahood22:11:37

Do you mean (into [:div1] [:div2]) ?

phil22:11:19

I thought there was a little helper introduced to do it, perhaps I dreamt it...

lilactown23:11:46

It's a shorthand for a react fragment