Fork me on GitHub
#reagent
<
2017-05-20
>
seantempesta00:05:56

Can someone give me the rough pro/cons between using r/adapt-react-class and using the [:> ReactComponent syntax? I’ve been using the latter mostly out of laziness, but I recently took over @tiensonqin’s exponent-cljs-template and I want to make sure I’m making sound decisions going forward.

gadfly36100:05:49

I think :> is just syntactic sugar (for r/adapt-react-class)

gadfly36100:05:06

So shouldn't be a difference

seantempesta00:05:25

And which one is more idiomatic?

gadfly36100:05:12

I use adapt-react-class only bc it is easier for people to google / read .. i find a lot of people squint when they see :> and wonder what it is their first time seeing it ... but i dont know which is considered idiomatic unfortunately

seantempesta00:05:03

yeah. I think you’re right.

seantempesta00:05:25

I like how it’s clear that you’re using a native react component. But I should support whatever new devs are likely to find easier.

lsenta05:05:50

Anyone else having issues with react-dom and reagent.dom? - Uncaught TypeError: Cannot read property 'ReactComponentTreeHook' of undefined - and Uncaught Error: js/ReactDOM is missing

cmal15:05:15

Hi! Can I use OO libs such as Swiper.js and Tether.js in reagent?

urbank20:05:14

@cmal If you can integrated with react, yes. And I think you probably can

urbank20:05:42

So you can either use it as a javascript library, or translate it to reagent.