we are using flux now ... yaaay ...

This commit is contained in:
Senad Uka
2015-01-25 10:26:10 +01:00
parent bbb6e9cc71
commit fe3703d892
15 changed files with 227 additions and 56 deletions

View File

@@ -4,13 +4,11 @@ var ItemCollection = require('../models/itemCollection.js');
var ItemList = React.createClass({
render: function() {
var itemClick = this.props.itemClick;
var items = this.props.items.models.map( function(item) {
return (
<SingleItem item={item} itemClick={itemClick}/>
<SingleItem item={item} key={item.id}/>
);
});
@@ -23,7 +21,7 @@ var ItemList = React.createClass({
</div>
</div>
);
},
}
});