Published
- 1 min read
react iterate number of times
The solution for this is noted below
react iterate number of times
Solution
const n = 8 // Or something else
Array.from(Array(n)).map((e, i) => (
<span className='busterCards' key={i}>
♦
</span>
))
Try other methods by searching on the site. That is if this doesn’t work