1

I'm trying to understand Vue with more depth and have done some reading about Vue 2's virtual DOM implementation and came across the mentions of snabdom and hyperscript.

My understanding is that Vue 2 uses a fork of snabdom to implement its virtual DOM. Then there's also the render function which calls the h to create virtual node.

So how is the virtual node (hyperscript) related to snabdom? Seems like they do the same thing.

Vue2's h in render function:

new Vue({
 render: h => h(App)
}).$mount('#app')
Mysterywood
  • 1,378
  • 2
  • 10
  • 19
  • What's the premise for the question? Vue has the functionality that snabdom and hyperscript libs offer and borrowed from them at some point but there's no relationship between them. They don't come together. – Estus Flask Nov 29 '20 at 21:23
  • I have added more context to my question. – Mysterywood Nov 30 '20 at 08:16

0 Answers0