I have an array
let counterArray = [5];
I need to loop 5 times
{counterArray .map(counter=>
<span>Counter- {counter}</span>
)}
This will just display the counter. How do i loop the counter?
For Suppose if i have
let counterArray = [15];
.map has to loop 15 times. Basically converting the number to loop. How to achieve this?