Vue quiz · 23 questions

Render error

Read the code

In Vue 2, the code snippet presents a valid usage of the renderError() function.


new Vue({
render (h) {
throw new Error('An error')
},
renderError (h, err) {
return h('div', { style: { color: 'red' }}, err.stack)
}
}).$mount('#app')
  • 1–2 answer
  • ← previous
Question 15 of 2361%