const rendered = []; for (let id of ids) { rendered.push(<h3>{id}</h3>); } return ( <div > {rendered} </div> );