Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

react map array limit

var film = this.props.data.slice(0, 5).map((item) => {
        return <FilmItem key={item.id} film={item} />
    });

return film;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #react #map #array #limit
ADD COMMENT
Topic
Name
9+8 =