I am trying out devcards and as soon as I add this expression: [devcards.core :refer-macros [defcard]]or this (:require-macros [devcards.core :refer [defcard]]) section I get this error: Uncaught TypeError: Cannot read property 'render' of undefinedin my browser console. Any ideas what is going on here?
I just checked the dependency tree and every react dependency is > 0.14.x
@kurtlazarus: I see you had the same problem: http://clojurians-log.mantike.pro/devcards/2015-12-10.html did you solve this somehow?
@sveri: yea, i solved it by downgrading reagent
at the time, reagent and devcards were using two different versions of react
Hm, my dependency tree looks like this:
they almost refer to the same version
although only devcards refers to plain react
Got it working now using the versions from here: https://github.com/bhauman/devcards-template/blob/master/src/leiningen/new/devcards/project.clj I get a warning that React.render is deprecated, but I guess thats ok