Fork me on GitHub
#reagent
<
2019-02-14
>
caleb.macdonaldblack02:02:00

I'm using adapt-react-class and my onChange prop needs a reference to this. When I use (fn [] (this-as this (js/console.log this))) I get a reference to the Window instead of my react component. Any ideas?

aisamu02:02:12

If you're looking for the dom node, :ref!