Closed maxkrieger closed 8 years ago
Hmm...isn't ref
a callback nowadays? https://facebook.github.io/react/docs/more-about-refs.html#the-ref-callback-attribute
Although the string method is outdated, it can still give you access to the domelement pretty easily.
Ah. So what does refs.box
give you? Is that an <a-entity>
DOM element?
Oop, it gives an Entity
:confused:. Is there a better way to implement this if any?
I guess react-dom.findDOMNode
Somehow React should let you grab the DOM element, else write a component.
As from the docs, following this pattern:
How does one properly implement this?