Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Whenever people mention how awesome Vue is, there is always a comment that nothing beats vanilla JS.

I recently I learned that it not always true. As a matter of fact Vue (and many frameworks) does a lot of optimization under the hood to keep your apps breezy.

For example when you're dealing with lots of data, One of such concepts is re-using input fields and DOM elements via keying. So if you are trying to render lots of input fields, Vue can intelligently reuse(1) the components so as to make minimal changes to the DOM (implementing this vanilla JS is possible but might require lots of efffort).

(1) https://vuejs.org/v2/guide/components.html#Reusing-Component...



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: