This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2018-07-07
Channels
- # beginners (19)
- # cider (20)
- # cljs-dev (2)
- # cljsjs (2)
- # clojure (61)
- # clojure-spec (13)
- # clojure-uk (12)
- # clojurescript (12)
- # core-typed (1)
- # cursive (16)
- # data-science (30)
- # datomic (37)
- # fulcro (8)
- # hoplon (7)
- # jobs-discuss (1)
- # onyx (21)
- # planck (18)
- # protorepl (1)
- # re-frame (2)
- # reagent (1)
- # shadow-cljs (6)
- # tools-deps (4)
depending on how react-d3-speedometer is implemented. if it’s using ES module syntax (import/export), then you can do:
(:require ["react-d3-speedometer" :default d3-speedometer)
and use it like [:> d3-speedometer]
👍 4
problem is I can't figure out how to call the default export as a react component in reagent
(:require ["react-d3-speedometer" :as s])
(defn x
[]
[:> ...how to call default export of s?]
hi everyone, sorry I'm not 100% sure this is shadow specific but I just started messing around with raw react, anyone know why (react/createElement "h1" nil #js["hello world"] )
seems to return nil at the repl, but when i js/console.log
it I get a react element value?
ok I see that this is related to https://dev.clojure.org/jira/browse/CLJS-1628