title: React | How to get length of divs by id/class?
body: <p>I need to find the length of child element divs</p>
  
  <pre><code>&lt;div className="intentContainer"&gt;
        &lt;div className="intent"&gt;
        &lt;/div&gt;
        &lt;div className="intent"&gt;
        &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Here is my code. Need to find no of 'intent' elements</p>