This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-13
Channels
- # aleph (1)
- # announcements (14)
- # aws (8)
- # babashka (3)
- # beginners (49)
- # cider (6)
- # clara (7)
- # clj-kondo (58)
- # cljs-dev (17)
- # clojure (65)
- # clojure-dev (45)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (25)
- # clojure-norway (3)
- # clojure-uk (68)
- # clojurescript (10)
- # cursive (5)
- # datomic (12)
- # emacs (24)
- # fulcro (149)
- # hoplon (56)
- # kaocha (2)
- # luminus (18)
- # malli (7)
- # off-topic (12)
- # other-languages (82)
- # reagent (16)
- # reitit (7)
- # shadow-cljs (44)
- # spacemacs (4)
- # tools-deps (48)
- # xtdb (17)
Anyone using reagent with react native? For loops in the hiccup seem to break the Text
component.
This throws some error like “Cannot convert symbol to string” (sorry don’t have the exact error ATM).
Yep, it's this one: https://github.com/reagent-project/reagent/issues/369#issuecomment-516883519
That is, if you have something truly unique to identify each text
. If not, the approach with into
is just fine. Or you can use mapv
:
[;> rn/View
(mapv (fn [text] [:> rn/Text text]) texts)]
Just in case, you may want to read this then: https://reactjs.org/docs/lists-and-keys.html#keys