This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-03-31
Channels
- # admin-announcements (1)
- # beginners (16)
- # boot (25)
- # braid-chat (7)
- # cider (4)
- # cljsfiddle (6)
- # cljsrn (1)
- # clojure (256)
- # clojure-austin (4)
- # clojure-ireland (1)
- # clojure-poland (15)
- # clojure-russia (80)
- # clojure-uk (2)
- # clojurescript (30)
- # core-async (14)
- # core-typed (3)
- # cursive (35)
- # datomic (1)
- # editors (28)
- # hoplon (32)
- # immutant (1)
- # jobs (8)
- # jobs-discuss (1)
- # juxt (6)
- # leiningen (8)
- # liberator (7)
- # off-topic (16)
- # om (69)
- # onyx (38)
- # re-frame (10)
- # spacemacs (1)
- # untangled (117)
Hi folks - doesn’t anyone know how to set a re-com component’s html id value? I have tried the following but I’m receiving a TypeError:
(fn []
[:input-text
:attr {:id "foo"}
:model text-val
:on-change #(dispatch [:foo-handler @text-val])]) ))
sorry, should be:
(defn inputfoo []
(let [text-val (reagent/atom "")]
(fn []
[:input-text
:attr {:id "foo"}
:model text-val
:on-change #(dispatch [:foo-handler @text-val])]) ))
You have :input-text
(keyword) as the component name. Should probably be input-text
or re-com/input-text
Thanks @gregg! silly error - I’ve been staring at this too long 😅
lol - yup! done that one a few time 😉