LEARNING BY VUEING

Instantiate Vue
37 / 42

main.js is where we start up Vue by rendering the root component (App.vue).

We then mount it on the element with the ID #app found in public/index.html.

Instead of $mount you might come across the property el: '#app' instead (in the object where the render method is).

Try replacing $mount with el. They are the same but $mount is more flexible as it can be called at a later point after Vue has been instantiated.