News for hackers. Stuff that matters.
Re:Show HN: Espresso.js – React Meets Backbone for a Minimal... by akrymski on Tuesday November 11, 2014 @04:40PM (#8592371)
Sure - but that's quite horrible to write. And moreover it requires a sophisticated virtual DOM diffing algo, hence the size of React's library.

I prefer to do this:

render: function() { return { view: { classList: { editing: this.model.editing, completed: this.model.done } } } }

Compared to outputting the entire HTML for the component in render().

There are no comments on this comment yet.