This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2016-04-12
Channels
- # alda (3)
- # beginners (17)
- # boot (157)
- # cider (15)
- # cljs-dev (30)
- # cljsjs (4)
- # cljsrn (5)
- # clojure (70)
- # clojure-austin (3)
- # clojure-canada (2)
- # clojure-colombia (1)
- # clojure-czech (1)
- # clojure-dev (27)
- # clojure-greece (34)
- # clojure-japan (6)
- # clojure-russia (114)
- # clojure-sg (3)
- # clojure-uk (8)
- # clojurescript (63)
- # cursive (9)
- # datomic (40)
- # devcards (11)
- # euroclojure (4)
- # events (8)
- # hoplon (61)
- # incanter (1)
- # instaparse (16)
- # jaunt (6)
- # jobs (6)
- # jobs-discuss (52)
- # ldnclj (1)
- # leiningen (2)
- # off-topic (3)
- # om (73)
- # onyx (101)
- # overtone (25)
- # re-frame (18)
- # reagent (6)
- # ring (7)
- # ring-swagger (36)
- # spacemacs (5)
- # sydney (1)
- # untangled (41)
- # yada (6)
With cljsjs/fixed-data-table
in devcards it works fine. But in my main app the fixed-data-table code throws an error because ReactDOM
is undefined, even though ReactDOM
is available as a global var in the js console.
Does devcards
do anything special to make sure ReactDOM
is defined in cljsjs packages?
The only thing I saw in the source was this. https://github.com/bhauman/devcards/blob/c463b5d9e675063e8288b20ceff253ad0289d3f2/src%2Fdevcards%2Fsystem.cljs#L12 I copied that but it didn't work.
@currentoor: You probably are not requiring ReactDOM before its first use.
@bhauman: I'll try adding those two the to top of my :require
statements.
If you have to level code that is executing on file load you need to make sure that the require happens before that code executes
I would go to your root file and require it there. And then look at the Dom and see what order things are loading
Good idea, I'll try that. Thanks!
@bhauman: it works now, Thank you very much!