This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2019-06-08
Channels
- # aws-lambda (2)
- # beginners (66)
- # calva (7)
- # cider (1)
- # clj-kondo (1)
- # cljs-dev (4)
- # cljsrn (2)
- # clojure (79)
- # clojure-android (1)
- # clojure-spec (8)
- # clojure-sweden (3)
- # clojure-uk (12)
- # clojurescript (6)
- # datomic (18)
- # duct (1)
- # emacs (31)
- # fulcro (8)
- # hoplon (5)
- # joker (4)
- # luminus (9)
- # off-topic (7)
- # reagent (6)
- # rewrite-clj (8)
- # shadow-cljs (9)
- # spacemacs (42)
- # tools-deps (9)
- # yada (4)
Hi I am trying to test material-ui 4.0 with reagent. everything was okay until 3.9, but the theme/styling does not work in 4.0. It looks like material-ui uses react hook in 4.0, and that seems be the breaking change. Is there an issue to adapt components using react hook in reagent?
Hi folks I'm using Material-UI and I'm trying to make a radio button list per this example:
https://material-ui.com/components/radio-buttons/
And to make a FormControlLabel
the control
prop needs a react component I think
So what would the proper hiccup syntax look like for something like the following?
<RadioGroup
aria-label="Gender"
name="gender1"
className={classes.group}
value={value}
onChange={handleChange}
>
<FormControlLabel
value="female"
control={<Radio />} ;; <== Cant' figure this one out!
label="Female" />
/>
I have something like this currently, but it says control is undefined at runtime
[:> RadioGroup
[:> FormControlLabel {:control (:> Radio) :value (str 1) :label "blah"}]
]
Hi @trevor670! Try this:
:control (r/as-element [:> Radio {...}])
…`r` refers to reagent.core