4 ms·
the reason your html is modeled at the javascript level is because of the DOM efficiencies it provides. but they've provided JSX on top which means you can ess
by catshirt 13y ago
the reason your html is modeled at the javascript level is because of the DOM efficiencies it provides.
but they've provided JSX on top which means you can essentially write "plain html" as with any other application.
i really prefer having my template and it's logic in the same language. one option is React without JSX, another is clojurescript.
the short answer to your question is that Backbone and Knockout (afaik) don't do diffs to update your DOM.
- RussianCow 13y agoThat's not particularly relevant because Knockout doesn't need to do diffs--it uses the observable pattern, so in most cases it knows what changes have been made the moment they are made.