react repeat

JavaScript
[...Array(n)].map((el, index) => <p key={index}>Item</p>)
Source

Also in JavaScript: