This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-02-15
Channels
- # aatree (23)
- # admin-announcements (13)
- # announcements (3)
- # beginners (49)
- # boot (50)
- # braid-chat (1)
- # braveandtrue (37)
- # cider (72)
- # cljs-dev (25)
- # cljsjs (6)
- # cljsrn (37)
- # clojure (78)
- # clojure-berlin (8)
- # clojure-greece (1)
- # clojure-ireland (2)
- # clojure-madison (14)
- # clojure-new-zealand (2)
- # clojure-poland (10)
- # clojure-russia (149)
- # clojured (2)
- # clojurescript (49)
- # community-development (6)
- # core-async (37)
- # cursive (1)
- # data-science (1)
- # datomic (30)
- # emacs (4)
- # euroclojure (1)
- # funcool (1)
- # graclj (1)
- # hoplon (17)
- # jobs (2)
- # jobs-rus (45)
- # ldnclj (6)
- # mount (12)
- # off-topic (124)
- # om (270)
- # onyx (131)
- # parinfer (70)
- # perun (2)
- # proton (168)
- # re-frame (32)
- # reagent (29)
- # ring-swagger (8)
- # testing (9)
- # yada (39)
@martinklepsch: hey thanks for reaching out. I eventually figured it out with enough trial and error. I guess as someone who’s never used cljsjs before, it’s not immediately obvious how the libs are imported, and how to correctly access them in clojurescript code. This is definitely a beginner’s problem, probably not a problem for a more experienced Clojurescript developer.
chiming in uninvited: i agree with @adampash - as a beginner in cljs, a super-simple example of cljsjs usage would help me out quite a bit.
Maybe each readme should have a little section like "adding this to your dependencies and requiring it makes the library available in the global js namespace, i.e. js/React
"
@adampash: I guess it assumes some knowledge about how foreign libs work that could be explained better
Yeah, I mean, I slowly figured it out by digging up some code that used cljsjs in its dependencies. but something like that, and maybe even a link to something that goes deeper into foreign libs would probably go a long way toward helping out beginners like me.
the readme links to this: https://github.com/clojure/clojurescript/wiki/Packaging-Foreign-Dependencies —‚did you read this? (admittedly it's not very specific on usage, so maybe that page is the right spot to improve documentation