react show more items at once using an arraylist code example
Example: how to get element from arraylist react
function NonIdiomaticList(props) {
// Build an array of items
let array = [];
for(let i = 0; i < props.items.length; i++) {
array.push(
<Item key={i} item={props.items[i]} />
);
}
// Render it
return (
<div>
{array}
</div>
);
}