Reactjs: How to access ref of child component in parent component as well as in child component?

前端 未结 0 920
余生分开走
余生分开走 2021-01-30 06:09

In React.js I am using ref in parent component to get the child element.

PARENT COMPONENT

constructor(){
    this.setModalRef = element =&         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题