This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-01-27
Channels
- # aws-lambda (3)
- # beginners (3)
- # boot (327)
- # capetown (2)
- # cider (156)
- # cljs-dev (368)
- # cljsjs (13)
- # cljsrn (53)
- # clojure (403)
- # clojure-czech (5)
- # clojure-dev (4)
- # clojure-greece (2)
- # clojure-russia (72)
- # clojure-spec (12)
- # clojure-uk (129)
- # clojurescript (156)
- # core-async (1)
- # cursive (33)
- # datomic (35)
- # emacs (10)
- # events (1)
- # hoplon (4)
- # jobs-discuss (3)
- # klipse (1)
- # lein-figwheel (14)
- # leiningen (5)
- # luminus (5)
- # off-topic (15)
- # om (69)
- # om-next (2)
- # onyx (2)
- # parinfer (15)
- # perun (12)
- # re-frame (30)
- # reagent (7)
- # ring-swagger (8)
- # spacemacs (10)
- # specter (6)
- # untangled (69)
- # yada (13)
anyone here have experience using cljs-react-material-ui ? Specifically, i’m trying to using the HOC muiThemable
from http://www.material-ui.com/#/customization/themes to wrap my custom reagent component & can’t figure out how to do it
the javascript usage for it is: muiThemeable()(ReactComponetClassToWrap);
you’d treat the result as a ReactComponent
i’ve tried this:
(defn mui-themeable
[wrapped]
(let [wrapped-comp (reagent/reactify-component wrapped)
mui-theme-fn (js/MaterialUIStyles.muiThemeable)]
(reagent/adapt-react-class (mui-theme-fn wrapped-comp))))
then used it like this:
(let [themed-comp (mui-util/mui-themeable my-comp-using-theme)]
[themed-comp arg1 arg2]
perhaps @madvas knows?
@rorydouglas haven’t tried muiThemeable yet, can’t try it at the moment 😕