This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-10-28
Channels
- # aws (5)
- # aws-lambda (1)
- # beginners (133)
- # boot (1)
- # cljsrn (1)
- # clojure (28)
- # clojure-austin (3)
- # clojure-italy (2)
- # clojure-spec (17)
- # clojure-uk (18)
- # clojurescript (38)
- # cursive (6)
- # datomic (6)
- # figwheel (1)
- # graphql (1)
- # klipse (1)
- # leiningen (1)
- # off-topic (13)
- # onyx (30)
- # re-frame (44)
- # reagent (7)
- # shadow-cljs (77)
- # spacemacs (7)
According to this pr: https://github.com/reagent-project/reagent/pull/308, Reagent supports React 16. However, since React 16 is not on cljsjs, I’m not sure how I require it? Via a script tag?
Had to go here to discover it - but it’s just a matter of doing
[reagent "0.8.0-alpha2"]
[cljsjs/react "16.0.0-0"]
[cljsjs/react-dom "16.0.0-0"]
in the project.clj
, and then React.version
in the browser evaluates to "16.0.0"
.
Edit: react-dom
is required. And apparently Error Boundaries work out of the box, which is pretty cool!