title: Looping the number inside array - React
body: <p>I have an array</p>
  
  <pre><code>let counterArray = [5];
  </code></pre>
  
  <p>I need to loop 5 times</p>
  
  <pre><code>{counterArray .map(counter=&gt;
      &lt;span&gt;Counter- {counter}&lt;/span&gt;
  )}
  </code></pre>
  
  <p>This will just display the counter. How do i loop the counter?</p>
  
  <p>For Suppose if i have</p>
  
  <pre><code>let counterArray = [15];
  </code></pre>
  
  <p>.map has to loop 15 times. Basically converting the number to loop. How to achieve this?</p>