nosco / hx

A simple, easy to use library for React development in ClojureScript.
MIT License
247 stars 16 forks source link

Pass initial value to react/useRef #23

Closed danielneal closed 5 years ago

danielneal commented 5 years ago

Hey, just tried to use <-ref and it didn't work as I expected, think it might just be that the initial state needs to be passed through to react/useRef. This commit adds it in. Thanks!

ps I'm really glad someone's made a new minimal React wrapper for ClojureScript :) nice work!

lilactown commented 5 years ago

:+1: I'll cut a release later today