title: ReactJs How to access child components refs from parent
body: <p>How to access the refs of children in a parent to do something with them in the parent function?        </p>
  
  <pre><code>class Parent extends Component {
  
    someFunction(){
    // how to access h1 element of child in here ??
    }
  
    render() {
      return (
        &lt;Child /&gt;
      );
    }
  }
  
  
  
  class Child extends Component {
    render() {
      return (
        &lt;h1 ref="hello"&gt;Hello&lt;/h1&gt;
      );
    }
  }
  </code></pre>