const Pets = () => {
return (
<Fragment>
<Dog />
<Cat />
</Fragment>
)
}
function Example(num){
const output = new Array();
for(let i = 0; i< num ; i++){
output.push(<Component />)
}
return output;
}
return(
{get_comments(this.props.comments)}
)