Fork me on GitHub
#reagent
<
2015-09-17
>
luposlip06:09:03

Any experiences with a UI framework that works nicely with Reagent (initialization/updates should work, which it doesn’t out-of-the-box with frameworks such as Angular-based OnsenUI etc.)?

jaen06:09:52

@zane @danielcompton: IIRC I only updated the value inside reaction when query result changed, so that should probably, so it should be passing identical? check. Or at least that was my intention.

jaen06:09:28

@luposlip: ifdo you mean mobile UI framework giving Onsen as an example, or just a generic UI framework?

luposlip06:09:36

@jaen Both, actually. I’m currently using OnsenUI for mobile app development (with Reagent, even though they're not optimal together), and Bootstrap for the desktop client. But would like some more modern approach, optimally working great for both desktop and mobile, but that’s not a requirement.

jaen06:09:18

I haven't yet used any of those for real, but material-ui, Touchstone and Reapp seem interesting for mobile development with React.

luposlip06:09:25

tnx for the input @jaen!

jaen06:09:24

For non mobile I've seen http://elemental-ui.com/

jaen06:09:14

But didn't try it, using Bootstrap and stealing bit of code from re-com if I need a more complex component was good enough for me for now.

luposlip06:09:27

:thumbsup::skin-tone-4:

danielcompton09:09:47

@luposlip: have you see re-com?

luposlip09:09:23

Nope @danielcompton, somehow I didn't notice it! Update: I remember looking at it some day, but since it doesn't work with IE10, I'm not able to support my customers with it ;)

Petrus Theron12:09:30

Is there a lightweight tag selector for reagent around? Preferably with autocomplete suggestions, that does not require large forms libraries.

gstamp22:09:42

I'm using reagent template and it includes the following test command in the project.clj:

:cljsbuild {
  ...
  :test-commands {"unit" ["phantomjs" :runner
                          "test/vendor/es5-shim.js"
                          "test/vendor/es5-sham.js"
                          "test/vendor/console-polyfill.js"
                          "target/test.js"]}}
I was wondering what the :runner directive was for? I had trouble finding where it was documented.

gadfly36122:09:03

See clojurescript.test, should be documented there (which btw was just deprecated a few days ago)

gstamp22:09:20

I was trying to figure out if there is a way to automatically rerun the tests without the startup overhead of lein. At the moment it’s 15 seconds just to run the simple example test.

gadfly36122:09:10

Oh man that's slow! I havent used clojurescript.test before. Been using cljs.test and its really lightweight and fast. If you'd like to see a setup see reagent-figwheel or re-frame-template

gadfly36122:09:35

Lein new reagent-figwheel <app-name> +test

gadfly36122:09:55

As an aside, devcards are nice for testing too and really fast when paired with figwheel

gstamp23:09:12

devcards looks great. Exactly the sort of fast feedback loop I’m looking for.