D
D
danilr2020-02-19 13:43:03
Vue.js
danilr, 2020-02-19 13:43:03

What is the difference between creating a Vue root instance and before the render function?

new Vue({
  el: '#app',
  render: h => h(App)
})

this code and this one - works similarly, what's the difference?
new Vue({
  render: h => h(App)
}).$mount("#app");

And how was the root component initialized in the instance before without a render function?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question