refactoring working, will need to reorganize stuff a little bit

This commit is contained in:
Edin Dazdarevic
2015-01-25 12:52:31 +01:00
parent 2ad4e4a766
commit 769230eda1
12 changed files with 83 additions and 142 deletions

View File

@@ -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: [] };
//}
});