This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-02-18
Channels
- # beginners (56)
- # boot (1)
- # cider (96)
- # cljs-dev (148)
- # clojure (60)
- # clojure-austin (11)
- # clojure-france (2)
- # clojure-italy (5)
- # clojure-russia (11)
- # clojure-spec (31)
- # clojure-uk (5)
- # clojurescript (52)
- # community-development (37)
- # cursive (3)
- # data-science (8)
- # datomic (14)
- # devcards (2)
- # emacs (1)
- # fulcro (13)
- # hoplon (1)
- # immutant (2)
- # luminus (3)
- # off-topic (2)
- # onyx (16)
- # parinfer (38)
- # re-frame (8)
- # reagent (5)
- # shadow-cljs (332)
- # spacemacs (5)
- # specter (5)
- # sql (6)
- # vim (52)
How do you deal with using npm packages with reagent? There are tons of react libs i want to use that are not in cljsjs. I tried this blog post but is not working for me http://blob.tomerweller.com/reagent-import-react-components-from-npm Maybe because I’m using re-frame lein template instead of reagent’s?
@pablore if you are doing this a bunch, use shadow-cljs. you just install with npm then import it directly into your source using a normal namespace. join #shadow-cljs if you go this route
otherwise, the way to do this is to grab a UMD build and use the :foreign-libs
compiler option
thanks @lee.justin.m, been all afternoon building with shadow-cljs and is working great