This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-12-19
Channels
- # beginners (240)
- # boot (9)
- # braveandtrue (2)
- # bristol-clojurians (2)
- # cider (2)
- # cljsrn (84)
- # clojars (1)
- # clojure (195)
- # clojure-belgium (9)
- # clojure-china (5)
- # clojure-denmark (4)
- # clojure-italy (7)
- # clojure-mke (1)
- # clojure-norway (1)
- # clojure-russia (16)
- # clojure-spec (74)
- # clojure-uk (15)
- # clojurescript (78)
- # clr (3)
- # code-reviews (4)
- # datascript (8)
- # datomic (71)
- # emacs (9)
- # hoplon (18)
- # jobs (3)
- # kekkonen (32)
- # klipse (19)
- # lambdaisland (2)
- # luminus (15)
- # off-topic (6)
- # om (35)
- # om-next (62)
- # onyx (17)
- # overtone (5)
- # pedestal (1)
- # perun (1)
- # planck (31)
- # protorepl (1)
- # re-frame (135)
- # reagent (34)
- # ring-swagger (6)
- # rum (54)
- # specter (3)
- # untangled (14)
- # yada (14)
@ghaskins I’d use/wrap react-bootstrap, which can be found on cljsjs (lein dep: [cljsjs/react-bootstrap “0.30.6-0”] )
I’ve used that, too. 🙂
oh, cool..any thoughts on how it compares to react-bootstrap in terms of integration ease (obviously, the aethetics of the ui would be different)
so far, i've been happy though my impression so far is material-ui is more about the components/aethetics than it is about the full responsive framework like bootstrap
I really liked it. I don’t think there is a compelling reason to prefer bootstrap over it
I haven’t used it w/ flexbox, but that sounds great
flexbox is pretty new to me
i only discovered it because the material-ui example used it and I realized there wasnt a grid baked in
I’m looking forward to using it in a mobile app (react-native)
Im currently using flexbox on the "home" view (https://github.com/mayopta/library-asset-tag/blob/master/src/cljs/library_asset_tag/ui/home.cljs)
on a completely different subject, struggling to get the right combo of quote/unquote to invoke om/transact! from a different namespace than the reconciler
i need to unquote param so its value is substituted, but leave "foo" undecorated so it matches the method dispatch in the core ns
@samcf https://github.com/mayopta/library-asset-tag/blob/08b33f007cafe6fd0dd9f414055cd6b908887f99/src/cljs/library_asset_tag/ui/core.cljs#L39
but the problem is, with the quote/unquote syntax, that expanded to "library-asset-tag.ui.core/add-session-asset"
e.g. https://github.com/omcljs/om/wiki/Components%2C-Identity-%26-Normalization#appendix
basically, stupid pseudo newbie error on my part, but im drinking through the firehose
@ghaskins I would make a habit of using namespace-qualified symbols for mutation names
if you ns-qualify things using a syntax quote, clojure won’t qualify them automatically.
e.g., `[(app/blah {:thing ~value})]
:thumbsup:
hah, I just read the backlog here. I guess you had it all figured out before I commented
🙂 I like it, but it does have a bit of a learning curve
yeah, though they all do to some respect..id much rather invest in one that lets me code sanely in clojure(script)
do you have any advice for the way to mutate a vector, like here: https://github.com/mayopta/library-asset-tag/blob/08b33f007cafe6fd0dd9f414055cd6b908887f99/src/cljs/library_asset_tag/ui/core.cljs#L30
I basically want to conj something to the :session-assets, im not quite clear on the (swap!) form
i know this is pure clojure, not om specific, but maybe someone has their head wrapped around it
I’ve found that it scales well w.r.t. adding features. UI, parsers, remote querying, and mutations aren’t conflated in the ways they are in other frameworks
i took on this simple project to learn the ins-and-outs without getting bogged down in a complicated design
I’d just do: (swap! state update-in [:some :key :path] conj thing-to-add)
cool, i saw update-in in the examples for something similar, i figured it was related
swap!
will pass the current value of the state atom as the first arg to update-in
and update-in
will pass the value at the given keypath as the first arg to conj
goodluck- I’m out for the evening