Demystifying Vue.js internals

Demystifying Vue.js internals

When it comes to JavaScript frameworks, Vue.js is a trending UI framework.(just crossed 90k Github ⭐️ and more than 13k 🍴, very much closer to React). The most obvious reason for me to get attracted to Vue.js is — its learning curve - which is very less. Personally, I feel like I’m working in a jQuery sort of thing. After few days of digging, you can start building your app.

[…]

Once it detects the static sub-trees, Vue will hoist them into constants, so that Vue will not create fresh nodes for them on each re-render. These nodes will be skipped completely during the patching process of the virtual DOM.

[…]

Under the hood Vue will walk through all the properties that we define into the data and converts them to getter/setters using Object.defineProperty.

[…]