react loop x times code example
Example 1: jsx repeat
[...Array(n)].map((el, index) => <p key={index}>Item</p>)
Example 2: javascript render jsx element x many times
const n = 8;
[...Array(n)].map((elementInArray, index) => (
<div className="" key={i}> Whatever needs to be rendered repeatedly </div>
)
)