This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-01-04
Channels
- # architecture (5)
- # aws (11)
- # aws-lambda (1)
- # beginners (108)
- # boot (11)
- # cider (37)
- # clara (19)
- # cljsrn (72)
- # clojure (170)
- # clojure-austin (2)
- # clojure-dev (1)
- # clojure-dusseldorf (2)
- # clojure-italy (1)
- # clojure-spec (41)
- # clojure-uk (24)
- # clojurescript (113)
- # component (2)
- # core-async (29)
- # cursive (9)
- # data-science (5)
- # datomic (72)
- # docs (23)
- # duct (61)
- # editors (1)
- # emacs (1)
- # events (5)
- # fulcro (77)
- # graphql (2)
- # hoplon (4)
- # jobs (3)
- # jobs-discuss (16)
- # leiningen (5)
- # off-topic (94)
- # onyx (37)
- # precept (5)
- # re-frame (17)
- # reagent (11)
- # shadow-cljs (18)
- # spacemacs (107)
- # specter (3)
- # unrepl (64)
- # yada (1)
@faxa Why wouldn't you just run the same code on the lifecycle method?
:component-did-mount (fn [_] (set! (.-klipse_settings js/window) #js {:selector ".language-klipse"}))
@juhoteperi that is very great, thanks!
how can I output <script src="http://app.klipse.tech/plugin/js/klipse_plugin.js"></script> in the same function?
Dynamically loading scripts is not very common practice with Cljs or React... but you could do it the same way as in JS: http://unixpapa.com/js/dyna.html just write the same code in Cljs
actually I try to embed this into my reagent application, https://github.com/viebel/klipse just very hard to glimpse how to do it