3 ms·
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 d
by akrymski 12y ago
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().