How to access to actual Component when using ref and having ProxyComponent

南笙酒味 提交于 2020-01-04 05:19:29

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!