and the future of e-commerce search
by
Ken Ding and Sean Kozer
Mark up in JS?
No thanks.
var View = Backbone.View.extend({
modifyDOM: function() {
this.$el.html(this.template(obj));
},
render: function() {
this.$el.html(this.template(obj));
return this;
}
});
/** @jsx React.DOM */
var React = require('react');
var MainApp = React.createClass({
render: function() {
return (
<div>
<InstantBar />
<InfoBox />
<ProductGrid />
</div>
);
}
});
module.exports = MainApp;
var SuggestionActionCreator = {
fetchSelectedProduct: function (text) {
// Making a call to our server
ProductWebAPIUtils.fetchProducts(text)
.then(function (data, textStatus, jqXHR) {
AppDispatcher.dispatch({
actionType: Constants.FETCH_PRODUCTS,
data: data
});
}, function (jqXHR, textStatus, errorThrown) {
console.log(errorThrown);
});
}
}
careers.kogan.com/software-devs-engineering