refactoring working, will need to reorganize stuff a little bit
This commit is contained in:
@@ -7,13 +7,17 @@ var ItemMultimediaDescriptions = React.createClass({
|
||||
var self = this;
|
||||
|
||||
return (
|
||||
<div>Multimedia Description!</div>
|
||||
<div>Multimedia Description!
|
||||
{(this.props.descriptions || []).map(function(des) {
|
||||
return (<img src={des.url} />)
|
||||
})}
|
||||
</div>
|
||||
);
|
||||
},
|
||||
}
|
||||
|
||||
getInitialState: function () {
|
||||
return { descriptions: this.props.descriptions };
|
||||
}
|
||||
//getInitialState: function () {
|
||||
//return { descriptions: [] };
|
||||
//}
|
||||
});
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user