问题
We have a ref to a react component and want to call a method of this component. When using the ref it is a "ProxyComponent" object. How can I use it as my actual component or what to do to be able to do this. I saw, that there is the attribute "renderedElement" and inside the attribute "type" which is the correct type of my actual component. But I didnt find a way to use it like this/to call my components methods.
来源:https://stackoverflow.com/questions/38077572/how-to-access-to-actual-component-when-using-ref-and-having-proxycomponent