title: Access to a several elements through one ref React
body: <p>I wanna get access to multiple elements with using <code>refs</code> feature. Then after I could iterate through elements of <code>this.tabs</code>. Code below doesn't work, how fix it to make work? Solution, which I use now is <code>document.querySelectorAll('tabs')</code>, but it doesn't seems right for React.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>class Comp extends React.Component {
    constructor(props) {
      super(props);
      
      this.tabs = React.createRef();
    }
    
    componentDidMount() {
      console.log(this.tabs);
    }
  
  
    render() {
      return (
        &lt;div&gt;
          &lt;span class="tab" ref={this.tabs}&gt;One&lt;/span&gt;
          &lt;span class="tab" ref={this.tabs}&gt;Two&lt;/span&gt;
          &lt;span class="tab" ref={this.tabs}&gt;Three&lt;/span&gt;
        &lt;/div&gt;
      );
    }
  }
  
  ReactDOM.render(
    &lt;Comp /&gt;,
    document.getElementById('app')
  );</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.1.0/react-dom.min.js"&gt;&lt;/script&gt;
  &lt;div id="app"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>