Starting with Vue.js with jQuery experience

4

I have experience with JavaScript and jQuery and after a few years I have decided to leave my comfort zone and know new horizons. I took a quick tour of the Angular until I got to Vue.js.

Is there a question I would like to clarify with friends, after all, does Vue replace jQuery? Or do they have nothing to do with each other?

What does Vue do that jQuery does not and vice versa?

    
asked by anonymous 24.12.2016 / 13:49

1 answer

5

vue.js and jQuery can be complementary or unique depending on what you want to do.

But in general the answer is if you use vue.js then you do not need jQuery.

The concept behind modern libraries such as vue.js or React.js is to have built-in mechanisms for redrawing the page and content. This type of "work" was typically done by libraries like MooTools or jQuery. So without the need for such tools what happens is that old libraries fall into disuse.

If you have some functionality that vue.js does not do (eg AJAX requirment, or a specific jQuery plugin) then you can use jQuery. If not, then you no longer need jQuery.

Note that if you use jQuery you probably have to insert through compiler like webpack or browserify . I found one for the webpack and one for the browserify , but that's a separate question.

    
24.12.2016 / 13:58