React: Mutating instance of Ref object in child components

前端 未结 0 699
遇见更好的自我
遇见更好的自我 2020-12-09 13:51
class Parent extends React.Component {
  constructor(props) {
    super(props)
    this.ref = React.createRef()
  }

  componentDidMount() {
    this.ref.current = [         


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