How to rewrite class “return React.cloneElement” to functional component

后端 未结 0 1003
孤独总比滥情好
孤独总比滥情好 2021-01-12 02:10

Im trying to rewrite following class component:

class GetRef extends React.Component {

    componentDidMount() {
        console.log(this.ref);
    }

    re         


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