// ...inside the render() function var size = 3; var items = list.slice(0, size).map(i => { return <myview item={i} key={i.id} /> } return ( <div> {items} </div> )