var React = require('react');
var AddToCart = React.createClass({
render: function() {
return (
);
},
// Add change listeners to stores
componentDidMount: function() {
/*ItemActions.loadFrontPageItems();
ItemStore.addChangeListener(this._onChange); */
},
getInitialState: function() {
return {
//items: ItemStore.getItems()
}
},
_onChange: function () {
if (this.isMounted()) {
/* this.setState({
items: ItemStore.getItems()
}); */
}
},
});
module.exports = AddToCart;