Fork me on GitHub
#reagent
<
2017-05-04
>
souenzzo00:05:42

On @mikethompson there is a document.getElementById. I think that :ref is more "react/functional" approach

jfntn14:05:16

I’d like to test a fn that disposes of a reaction when it has no watches, is there any way I can write that kind of test without mounting components in a browser?

jtth16:05:58

Is there a preferred UI component library or should I care, or just do everything on my own with as much raw bootstrap as possible? Re-com, baking-soda (reactstrap), cljs-react-material-ui… I don’t know what to pick, and I want something that’s low-maintenance going forward that’ll be good to go when things get updated…

pesterhazy16:05:08

personally I'd go with just raw Bootstrap

pesterhazy16:05:36

unless you need some of the "dynamic" bits, like modals (?) and dropdowns

pesterhazy16:05:03

wrappers add a layer of "things that can go wrong", and bootstrap is easy to use from reagent (and well documents)

jtth16:05:02

True, true. I suppose I can just do the right thing and just make my own “modal” wrapper for when I need it and all that…

jtth16:05:38

I figure that’s the wisest choice, but I’d love a UI component library that everyone loves :P wishful thinking. Thanks. ‘Spose I just needed someone to say it.

gadfly36116:05:16

@jtth i have used all of the ones you've mentioned. I probably like the look of cljs-react-material-ui the best, but it will increase the size of your application a lot (so if size matters, it isnt the best choice) and also it becomes the controller of your react version. I think bootstrap is starting to look dated, but the components are easy to use. Re-com is nice and looks pretty good. With semantic ui, youre able to individually add certain components via cdn which is a nice way to keel size down.

gadfly36116:05:09

Personally tho, i lean toward using garden and writing css from scratch over a component library. I have probably used material-ui one the most tho

pesterhazy16:05:51

re-com is nice but the last time I used it I ran into some imitations, and then after a while dropped back into pure hiccup+bootstrap

pesterhazy16:05:41

which turned out to be about the same amount of code, but with better docs (Bootstrap's example markup can be fed into a html2hiccup converter really easily)

gadfly36116:05:19

That's a nifty trick :)

jtth16:05:20

Today I Learned there’s an HTML2Hiccup converter! :O