This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-08-05
Channels
- # admin-announcements (3)
- # architecture (1)
- # beginners (16)
- # boot (14)
- # cljsrn (205)
- # clojars (4)
- # clojure (100)
- # clojure-austin (2)
- # clojure-india (1)
- # clojure-poland (7)
- # clojure-russia (95)
- # clojure-spec (25)
- # clojure-uk (127)
- # clojurescript (32)
- # core-async (7)
- # cursive (2)
- # datascript (4)
- # datomic (3)
- # editors-rus (1)
- # emacs (8)
- # events (10)
- # funcool (5)
- # gorilla (2)
- # hoplon (6)
- # jobs (1)
- # lein-figwheel (7)
- # leiningen (2)
- # luminus (11)
- # om (7)
- # onyx (119)
- # other-languages (31)
- # proto-repl (1)
- # proton (37)
- # protorepl (3)
- # re-frame (60)
- # reagent (8)
- # spacemacs (9)
- # specter (21)
- # spirituality-ethics (2)
- # yada (10)
a basic cljsjs/react question. What is the right form of this.setState({count: this.state.count + 1})
my attempt is
(fn []
(this-as this
(.-setState this {:count (inc (:count (.-state this)))})))
but its not right format.@hlolli: it should be (.setState)
but you can use om.next/react-set-state
I made an om-next template for myself, may be useful for other newbies alike. https://github.com/hlolli/om-next-template
People who are using Compassus, I’d love some feedback on this: https://github.com/compassus/compassus/issues/6