Open vnctaing opened 3 years ago
I have the same problem.
Same error here.
I encountered this as well it looks as though the macro eventually expands to a raw call of js/React
(require '[react :as React])
(set! (.. js/window -React) React)
was a quick fix hack in my case.
It seems as though the macro should avoid expanding to js/React.createElement
and instead expand to reagent.core/create-element
which is a wrapper around Reacts createElement func.
Observed Behavior
Hello I'm using Luminus template for shadow-cljs, and I'm trying to use cljss.reagent
This produce these erros
Is there something I did wrong ?
Expected behavior
Being able to render red title
[:h1]
.