It’s a common practice for a Vue app to use the DOM as its template, as it’s the quickest and easiest architecture to set up.
This practice comes with a few catches, however, that make it an undesirable choice for any serious project. For example, the markup you write for a DOM template is not always what you get when your app runs.
In this week’s article, I’ll explain the issues with using the DOM as a template and offer some alternatives.
In other news, Vue.js has joined OpenCollective to raise funds for continued development. We’ve become an official sponsor, and if you benefit from Vue you should consider it too!