This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-23
Channels
- # beginners (169)
- # boot (8)
- # cider (20)
- # cljdoc (66)
- # cljs-dev (1)
- # cljsrn (1)
- # clojure (185)
- # clojure-greece (11)
- # clojure-italy (16)
- # clojure-nl (5)
- # clojure-spec (16)
- # clojure-uk (39)
- # clojurescript (11)
- # cursive (26)
- # data-science (2)
- # datavis (1)
- # datomic (40)
- # emacs (10)
- # figwheel-main (64)
- # graphql (10)
- # hyperfiddle (1)
- # jobs (2)
- # leiningen (9)
- # luminus (3)
- # nyc (1)
- # off-topic (19)
- # om (1)
- # onyx (6)
- # pedestal (2)
- # re-frame (35)
- # reagent (17)
- # ring-swagger (9)
- # rum (1)
- # shadow-cljs (42)
- # spacemacs (8)
- # specter (7)
- # tools-deps (4)
- # yada (6)
So react seems to have a lib for forms, tables etc because well I guess components are - easy to reuse - hard to write/maintain - somewhat a mess Anyway this applies to react in JS but are guys using these same tools with reagent?
I am using material-ui for components (https://material-ui.com/) and re-frame-form for forms https://github.com/imatic/re-frame-form (it doesn't do much - it's just some standard collection of re-frame events, subscriptions, ...). Messy example can be found here: https://github.com/imatic/re-frame-form/blob/master/examples/re-frame-form/src/example/core.cljs#L50, a bit better example can be found here: https://github.com/nenadalm/Warehouse/blob/d29bd308d5cf6697bd22cb138d26e5b271b3a2fe/frontend/src/warehouse/pages/list/views.cljs#L170.
Such as https://www.npmjs.com/package/formik and reactstrap https://reactstrap.github.io/
I'm trying to use Material UI with CLJS.
@urbanslug To use reactstrap from reagent, try baking-soda: https://github.com/gadfly361/baking-soda
However its sister project for semantic ui, soda-ash, is more popular https://github.com/gadfly361/soda-ash
@urbanslug hahah my bad 😂
you could stick the results of a create-class in a let block i suppose, but you wouldn’t want to inline it in reagent-render
but given how verbose they are, you’d almost certainly want to just name it in its own func
@lee.justin.m That´s what I´m looking for, inline it for component-did-mount
loading informations