This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-08-29
Channels
- # aws (16)
- # beginners (14)
- # boulder-clojurians (1)
- # braveandtrue (184)
- # cider (9)
- # cljs-dev (17)
- # cljsrn (10)
- # clojure (70)
- # clojure-austin (16)
- # clojure-finland (2)
- # clojure-germany (4)
- # clojure-italy (6)
- # clojure-nl (6)
- # clojure-sanfrancisco (2)
- # clojure-spec (5)
- # clojure-uk (60)
- # clojurescript (82)
- # cursive (1)
- # data-science (1)
- # datomic (13)
- # defnpodcast (1)
- # docker (82)
- # figwheel-main (18)
- # fulcro (51)
- # funcool (6)
- # jobs (13)
- # jobs-discuss (5)
- # jobs-rus (7)
- # juxt (2)
- # leiningen (4)
- # lumo (5)
- # mount (1)
- # off-topic (38)
- # pedestal (9)
- # re-frame (13)
- # reagent (16)
- # shadow-cljs (70)
- # spacemacs (5)
- # specter (9)
- # sql (8)
- # tools-deps (2)
- # vim (6)
Is there a way to conditionally append more than one element? Is there a special-form that i'm not aware of? This doesn't appear to work, but i'm able to use this in the similar library rum
.
You can use :<>
https://github.com/reagent-project/reagent/blob/master/CHANGELOG.md#080-2018-04-19
Ah, I just noticed this. I already posted an issue https://github.com/reagent-project/reagent/issues/396
It seems like that functionality is very similar, but it makes me wonder why they chose to make it express a React Fragment, and not just pre-process the vector before passing it to be rendered
Dang, i'm using an older version of reagent, so I can't use this feature. I"ll have to get some tests in place, and bump the version. Thanks @U662GKS3F
I could just wrap the pair of elements in another :div, but this breaks the styling of the page
So I guess what i'm asking is, is there a special form to concatentate to the end of the most recent parent form vector?
hey @gadfly361, thanks for baking-soda. quick n00b question.
how do I properly represent an attribute like sm={2} in ClojureScript?
e.g.
<Label for="exampleFile" sm={2}>File</Label>
turns into...
[b/Label {:for "exampleFile" :sm=?} "File"]
for context im trying to use reactstrap in re-frame to make a form. im using this as a guide to figure out what my options are : http://reactstrap.github.io/components/form/
@rspurrier I think it would just be a literal number, like {:sm 2}
yep, thanks!