This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-02
Channels
- # admin-announcements (2)
- # beginners (14)
- # boot (38)
- # cider (2)
- # cljsjs (3)
- # clojure (114)
- # clojure-russia (64)
- # clojure-taiwan (1)
- # clojurescript (40)
- # code-reviews (8)
- # component (2)
- # core-async (2)
- # cursive (7)
- # editors (3)
- # euroclojure (1)
- # hoplon (53)
- # leiningen (4)
- # om (129)
- # onyx (5)
- # proton (4)
- # protorepl (5)
- # re-frame (5)
- # reagent (11)
- # untangled (5)
- # yada (3)
how do I include external react components into my CLJS compile? Almost all of them are commonjs modules and :foreign-libs isn't working for me
trying to use https://github.com/balloob/react-sidebar
and I tried the steps here: http://blog.fikesfarm.com/posts/2015-12-22-foreign-libs-processing-in-repl.html but couldn't get it to work
Hi, does anyone know of a relatively maintained example app with a datomic backend and re-frame frontend? Kinda like this I guess https://github.com/bellkev/dacom
@jiangts: i've used browserify for this, creating a little shim that requires the module and stashes it on window for easy access
@jiangts: does this help: http://stackoverflow.com/questions/35489797/using-react-components-in-reagent/35734001#35734001
@mikethompson: yeah, I checked that link as well (similar to what @mccraigmccraig stated). maybe it's because i'm not too familiar with browserify, but unfortunately when I tried that I got some weird error saying I was require-ing two React.js's and it was having a problem
also it's not super desirable because I care about my build size and if I do it this way, all the code in my shim will have 1 copy of react and all my reagent code has its own copy
my latest attempt was to study how cljsjs packages were created, but I still haven't gotten it working
@mikethompson: is it recommended to use browserify to use npm modules in the browser with cljs, or have people had luck with something like webpack?
@adamkowalski: Sorry, I don't have deep knowledge around all this. I'd suggest asking in #C03S1L9DN channel.