Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

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> 
    ) 
)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #javascript #render #jsx #element #times
ADD COMMENT
Topic
Name
5+3 =