Why are declarative languages better for UI?
The first demo of this on the other hand, has html embedded in javascript strings. A program of any complexity written like this would quickly turn into a big ball of mud.
And arguably, if you choose a language based upon its ability to help you define what is "dynamic" vs. "static" you've made some mistakes.
Please elaborate.