This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2017-06-14
Channels
- # beginners (31)
- # boot (9)
- # cider (10)
- # cljs-dev (9)
- # cljsrn (16)
- # clojure (222)
- # clojure-austin (4)
- # clojure-france (13)
- # clojure-italy (21)
- # clojure-nl (2)
- # clojure-russia (71)
- # clojure-spec (9)
- # clojure-uk (39)
- # clojurescript (50)
- # cursive (16)
- # datomic (69)
- # dirac (2)
- # figwheel (1)
- # graphql (19)
- # hoplon (4)
- # jobs (1)
- # klipse (3)
- # leiningen (4)
- # liberator (3)
- # luminus (9)
- # lumo (9)
- # off-topic (3)
- # om (21)
- # onyx (11)
- # parinfer (2)
- # pedestal (8)
- # planck (19)
- # re-frame (17)
- # reagent (12)
- # remote-jobs (1)
- # ring-swagger (3)
- # spacemacs (17)
- # specter (23)
- # sql (1)
- # unrepl (64)
- # untangled (19)
- # yada (5)
Hey all, I am using cryogen to try and write a post using klipse. So far I can get a reagent component to render just fine. However, I am having trouble bringing in a 3rd party library. I am peeking at this post (http://ingesolvoll.github.io/2017/01/01/how-to-use-a-charting-library-in-reagent.html) and it looks like the author just requires cljsjs.highcharts somewhat magically. I tried this and, to my surprise, it didn't throw an error. I then tried to replace [cljsjs.highcharts] with [rid3.core :as d3] and says cant find it. How do make klipse aware of a 3rd party lib?
{:title "Reagent Interface to D3" :layout :post :tags ["clojurescript" "reagent" "d3"] :toc true :klipse {:settings {:selector ".klipse-cljs" :selector-reagent ".klipse-reagent" :codemirror-options-in {:line-numbers true}}}}
klipse-cljs
(require '[reagent.core :as r])
(require '[rid3.core :as d3]) ;; <-- this line
klipse-reagent
(defn hello [name]
[:p (str "Hello " name "!")])
[hello "Klipse"]