jsx array element x code example
Example: 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>
)
)
const n = 8;
[...Array(n)].map((elementInArray, index) => (
<div className="" key={i}> Whatever needs to be rendered repeatedly </div>
)
)