

Without precompiling templates in your build pipeline, Vue needs to translate the template string to a JavaScript render function at runtime. The virtual DOM makes room for a pretty big piece of optimization: you can now precompile your templates to pure JavaScript, so Vue can skip this step in the browser. Combined with the reactivity system, Vue is able to intelligently figure out the minimal amount of components to re-render and apply the minimal amount of DOM manipulations when the app state changes. Under the hood, Vue compiles the templates into Virtual DOM render functions. At first sight, this doesn’t seem to have a large effect on the way you write templates. Vue 2.0 introduced it’s own virtual DOM implementation. #vue.js #javascript Dealing with templates in Vue.js 2.0
