This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-09-02
Channels
- # announcements (3)
- # aws (3)
- # bangalore-clj (1)
- # beginners (88)
- # boot (7)
- # braveandtrue (10)
- # cider (6)
- # cljdoc (8)
- # cljsrn (3)
- # clojure (33)
- # clojure-germany (2)
- # clojure-italy (1)
- # clojure-spec (44)
- # clojure-uk (8)
- # clojurescript (14)
- # datomic (5)
- # emacs (6)
- # events (1)
- # figwheel-main (8)
- # fulcro (9)
- # leiningen (11)
- # lumo (3)
- # off-topic (119)
- # parinfer (2)
- # pedestal (1)
- # re-frame (11)
- # reagent (12)
- # shadow-cljs (162)
- # unrepl (4)
Trying to make sense of something. I have followed the examples on the reagent site, for the text boxes that update an atom. but when I use them, the text boxes do not accept input. This is really basic probably, but I can't find a good search term.
(defn about-page []
(let [small-example (reagent/atom "Sandford")]
[:div
[:input {:type "text"
:value @small-example
:on-change #(reset! small-example (-> % .-target .-value))}]
[:h1 @small-example]]))
@shawx538 https://github.com/reagent-project/reagent-cookbook/blob/master/basics/component-level-state/README.md