Slide 10
Slide 10 text
Components with children
var Photos = React.createClass({
render: function() {
var photos = this.props.photos.map((photo) => {
return React.createElement(Photo, {
imageSrc: photo.imageSrc,
});
});
return React.createElement('div', {}, photos);
}
});