weavejester / hiccup

Fast library for rendering HTML in Clojure
http://weavejester.github.io/hiccup
Eclipse Public License 1.0
2.68k stars 174 forks source link

:ref with react hook can't work #160

Closed ericzwong closed 5 years ago

ericzwong commented 5 years ago

I found that react hook useRef with :ref didn't work correctly, I guess this should be caused by clojure's immutable. have any idea?

chart-el .current always null。

(let [chart-el (useRef nil)]
[:input {:ref chart-el}]
)
weavejester commented 5 years ago

It sounds like you're using Reagent, not Hiccup?