You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How can I get a DOM ref of a child?
Previously I was able to get by .setRef(), but now I'm getting error child.setRef is not a function even for class-component children. What am I missing?
You can try to use child.getDomNode() but I wouldn't recommend using such a way since there's no any guarantee that this.children is an array of component nodes.
How can I get a DOM ref of a child?
Previously I was able to get by
.setRef()
, but now I'm getting errorchild.setRef is not a function
even for class-component children. What am I missing?The text was updated successfully, but these errors were encountered: